can someone tell me if this is the correct sql coding that i did, im not sure if that is the way i do it
what kind of report will be required for one particular hotel? write at least one SELECT statement (queries) per report need to write at least two statement and report but i did one im not sure if that is the correct for one of it can someone help me with this please
SELECT room.type, room.price FROM Room
WHERE hotelname
INNER JOIN Room ON Hotel.hotelNO=Room.hotelNo AND hotelName='Hilton
Look at your query and look at the order I showed you. Do you see any difference between your query and the right order for a SELECT query? HINT: INNER JOIN is part of the FROM clause
[quote=āmolona, post:9, topic:187441, full:trueā]Also, it looks like youāre using three tables but you have only created one relationship: table b with itself.
[/quote]
he/she is obviously cutting and pasting from somewhere else (edit: and it isnāt here at sitepoint, see Help finding the total income from a booking for a given hotel date - #14 by molona), and hasnāt answered my question (i wouldāve pointed out how the error message relates to the query, to teach him/her how to debug)
but when i get no cooperation, and instead guesswork, i sense a student hard up against a deadline with no real interest in learningā¦