MySQL Forums
Forum List  »  Newbie

Help me
Posted by: Alberto Sotomayor
Date: April 21, 2005 06:13PM

Please help me

I have two tables
table 1 the rooms with the present price,
in table 2 the rent History

I need the price of the room for one week, if it does not exist,
the price of the previous week


Table 1

room_no Integer
room_type Integer
room_price Decimal(10,2)


Table 2

room_no Integer
year Integer
Week Integer
Price Decimal(10,2)

How can do this ?

Sorry for my English

Options: ReplyQuote


Subject
Written By
Posted
Help me
April 21, 2005 06:13PM
April 21, 2005 10:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.