Project Detail

mysql filter problem  

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

 

Bookmark and Share
Free Trial For New Buyers
 

Status: Closed
(Selected Service Provider)

Selected Providers: srahmant

Budget: $30-250

Created: 07/01/2008 at 6:54 EDT

Bid Count: 19

Average Bid: $ 51

07/05/2008 at 6:54 EDT

Project Creator: wipeskim View PM Post PM
Employer Rating: 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10 (3 reviews)

Bid On This Project
 

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

Messages Posted: 0 View project clarification board Post message on project clarification board

Bid On This Project
 
If you are the project creator or one of the bidders Log In for more options

  View PM Post PM

50

0 days

07-01-2008 22:16 EDT

easy work for me, im very good at mysql and sql.

help

  View PM Post PM

90

3 days

07-04-2008 16:40 EDT

I think I can help you.

help

  View PM Post PM

50

0 days

07-01-2008 07:49 EDT

I can start right away. Check my feedback to see that I'm the right person for this job.

help

zub

  View PM Post PM

100

1 day

07-01-2008 07:12 EDT

Hello Sir, Please see the Pm. thank you With regards Zub

help

  View PM Post PM

50

1 day

07-02-2008 03:07 EDT

Lets start the work

help

  View PM Post PM

30

0 days

07-01-2008 14:54 EDT

0 hours' work

help

  View PM Post PM

100

1 day

07-01-2008 06:58 EDT

We can fix this for you. Please pass us more information. Thanks.

help

  View PM Post PM

100

1 day

07-01-2008 12:09 EDT

Well experienced web programmer with rich mysql knowledge. Your task will be completed quickly and done according to your requirements.

help

  View PM Post PM

35

1 day

07-01-2008 07:04 EDT

I could do that if you wish. Also I have some comments/suggestions on your database table structure. I'll describe them by PM.

help

  View PM Post PM

30

1 day

07-01-2008 11:18 EDT

Please see the PMB

help

  View PM Post PM

30

1 day

07-02-2008 22:57 EDT

You need to filter data getting the price that depend of the rate base. that is possible using sql. View PM for details.

help

  View PM Post PM

30

1 day

07-01-2008 11:57 EDT

please view pmb.

help

  View PM Post PM

30

0 days

07-01-2008 13:41 EDT

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.

help

  View PM Post PM

50

1 day

07-02-2008 06:08 EDT

Hi, please read PMB.

help

  View PM Post PM

50

1 day

07-01-2008 07:39 EDT

Thanks. Please accept the offer if are ready. Regards

help

  View PM Post PM

30

1 day

07-04-2008 16:32 EDT

i can do this task in a few hours. please give me this job.

help

  View PM Post PM

45

3 days

07-01-2008 08:07 EDT

(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

help

  View PM Post PM

30

1 day

07-01-2008 08:33 EDT

(No Feedback Yet)

i can do it

help

  View PM Post PM

30

2 days

07-01-2008 19:54 EDT

(No Feedback Yet)

Hi, Ihave expertise on MySQL & MSSQL. So I can do it totally. Regards, UltraJoom

help

    Bid on this Project