GetAFreelancer.com
 
Find projectsSearch
Sign Up | Log in | Top Rated Users | Browse projects | Post Project | RSS feeds | Articles
 

mysql filter problem

   Click here to post similar project

mysql filter problem is project number 281394 posted at GetAFreelancer.com. Click here to post your own project.

Status: Closed (Selected Service Provider)
Selected Providers: selected service provider srahmant
Budget: $30-250
Created: 07/01/2008 at 6:54 EDT
Bidding Ends: 07/05/2008 at 6:54 EDT
Project Creator: wipeskim View PM Post PM
Buyer Rating: 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(2 reviews)
Description: Hi ,

I need some help filtering results on mysql I have a table with :

Hotel { Name of the hotel }
start_date { Date When season starts }
end_date { Date When season ends }
room { Room that the hotel has }
Price { Price of the room for the hotel }
contract_id { Contract reference number for hotel }
Rate_base { Prices per Person = PP / Prices for Unit = PU }

The values that i output from the table is as follows or please check attach mysql table.

Room for 2 People
Hotel: Bayside | ROOM: Studio | PRICE: 20 | RATE BASE: PU
Hotel: Bayside | ROOM: One bedroom apartment | PRICE: 40 | RATE BASE: PU
Hotel: Sheraton algarve | ROOM: Twin | PRICE: 15 | RATE BASE: PP
Hotel: Sheraton algarve | ROOM: Suite | PRICE: 25 | RATE BASE: PP
Hotel: Savoy Hotel | ROOM: Twin Room | PRICE: 9 | RATE BASE: PP
Hotel: Savoy Hotel | ROOM: Junior Suite | PRICE: 16 | RATE BASE: PP
It should have a filter to identify when rate base is PP it multiplies by the number of people wich in this case is 2 so the price is {price} * 2 when rate_base is PP when rate_base = PU there’s no need to multiplie by number of pax; can anyone sort this out?

The correct output results ordered by price for each unit shoud be the ones mentioned below, please results should output what units are the cheapest and not wich record is cheaper. I will give example how it’s done when rate_base is = PU and PP

Room for 2 People
Hotel: Savoy Hotel | ROOM: Twin Room | PRICE: 9 | RATE BASE: PP |
ex: 9*2 = 18

Hotel: Savoy Hotel | ROOM: Junior Suite | PRICE: 16 | RATE BASE: PP
ex: 16* 2 = 32

Hotel: Bayside | ROOM: Studio | PRICE: 20 | RATE BASE: PU
ex: 20
Hotel: Bayside | ROOM: One bedroom apartment | PRICE: 40 | RATE BASE: PU
Ex: 40
Hotel: Sheraton algarve | ROOM: Twin | PRICE: 15 | RATE BASE: PP
Ex: 15*2 = 30

Hotel: Sheraton algarve | ROOM: Suite | PRICE: 25 | RATE BASE: PP
Ex: 25*2 = 50

Additional files submitted:
zrates.sql
Report violation
Job Type:
  • Data Processing
  • PHP
Database: MySQL
Operating system: MS Windows
Bid count: 19
Average bid: $ 51

 

Related project
 
Nonpublic project #307623 Featured Nonpublic
login to view
 

FREE Trial project for new buyers!

 

View Project Message Board     Post Message on Project Message Board
Messages Posted: 0

If you are the project creator or one of the bidders Log in as project creator or bidder for more options

Bid on This Project

Service Providers PMB Bid Delivery Within Time of Bid Provider Rating
Georgia
View PM Post PM
$ 90 3 days 07-04-2008 9.89/109.89/109.89/109.89/109.89/109.89/109.89/109.89/109.89/109.89/10
(74 reviews)
I think I can help you.
wincent
View PM Post PM
$ 50 0 days 07-01-2008 9.83/109.83/109.83/109.83/109.83/109.83/109.83/109.83/109.83/109.83/10
(64 reviews)
easy work for me, im very good at mysql and sql.
waterstudio
View PM Post PM
$ 50 0 days 07-01-2008 9.92/109.92/109.92/109.92/109.92/109.92/109.92/109.92/109.92/109.92/10
(53 reviews)
I can start right away. Check my feedback to see that I'm the right person for this job.
zub
View PM Post PM
$ 100 1 day 07-01-2008 9.92/109.92/109.92/109.92/109.92/109.92/109.92/109.92/109.92/109.92/10
(36 reviews)
Hello Sir, Please see the Pm. thank you With regards Zub
shuiwatermizu
View PM Post PM
$ 30 0 days 07-01-2008 9.97/109.97/109.97/109.97/109.97/109.97/109.97/109.97/109.97/109.97/10
(30 reviews)
0 hours' work
codersam
View PM Post PM
$ 50 1 day 07-02-2008 9.68/109.68/109.68/109.68/109.68/109.68/109.68/109.68/109.68/109.68/10
(28 reviews)
Lets start the work
grumps
View PM Post PM
$ 100 1 day 07-01-2008 9.96/109.96/109.96/109.96/109.96/109.96/109.96/109.96/109.96/109.96/10
(25 reviews)
Well experienced web programmer with rich mysql knowledge. Your task will be completed quickly and done according to your requirements.
SKDevelopment
View PM Post PM
$ 35 1 day 07-01-2008 9.95/109.95/109.95/109.95/109.95/109.95/109.95/109.95/109.95/109.95/10
(19 reviews)
I could do that if you wish. Also I have some comments/suggestions on your database table structure. I'll describe them by PM.
ezee
View PM Post PM
$ 100 1 day 07-01-2008 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(13 reviews)
We can fix this for you. Please pass us more information. Thanks.
phpoutsource
View PM Post PM
$ 30 1 day 07-01-2008 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(13 reviews)
Please see the PMB
royventures
View PM Post PM
$ 30 1 day 07-01-2008 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(10 reviews)
please view pmb.
RajakScripts
View PM Post PM
$ 50 1 day 07-02-2008 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(4 reviews)
Hi, please read PMB.
AKSolutions
View PM Post PM
$ 50 1 day 07-01-2008 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(3 reviews)
Thanks. Please accept the offer if are ready. Regards
frankouz
View PM Post PM
$ 30 1 day 07-02-2008 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(3 reviews)
You need to filter data getting the price that depend of the rate base. that is possible using sql. View PM for details.
srahmant
View PM Post PM
$ 30 0 days 07-01-2008 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(2 reviews)
Please check your PM.I have 3 years professional experience on PHP,MySql,AJAX. I already done many complex PHP/MySql based project.So i am sure i could complete this project successfully in timely.
winter2
View PM Post PM
$ 30 1 day 07-04-2008 9.00/109.00/109.00/109.00/109.00/109.00/109.00/109.00/109.00/109.00/10
(1 reviews)
i can do this task in a few hours. please give me this job.
river777
View PM Post PM
$ 45 3 days 07-01-2008 (No Feedback Yet)
Dear Sir, I believe this is an small modification on your query. Based on workload it would take maximum 1-3 days. Please give me a scope to work with you. Thanks
websol4u
View PM Post PM
$ 30 1 day 07-01-2008 (No Feedback Yet)
i can do it
ultrajoom
View PM Post PM
$ 30 2 days 07-01-2008 (No Feedback Yet)
Hi, Ihave expertise on MySQL & MSSQL. So I can do it totally. Regards, UltraJoom
Bid on This Project

 

[ Post Project Free ] [ View All Projects ] [ EU Freelance ]

What is GetAFreelancer.com? ( Read about the company )

GetAFreelancer.com helps webmasters, web designers, programmers, software developers and business owners to develop their projects. Deposit money and don't purchase until your project is completed. We provide a safe escrow environment and you don't release the money until project is completed.

A freelancer is an independent worker, not on salary, hired instead on a project basis. Bookmark our homepage to make sure you don't forget about our website next time you need to develop an IT project for yourself or your company. Would you like to outsource your next project? Would you like to make money as a freelancer? Click Sign Up to start!

Find Webmaster Resources and Webmaster Forum. Take a look at Search Engine Submission.