View Single Post

Old 17-08-08, 17:02   #3
Dogz
I smell great
 
Dogz's Avatar
 
Offline
Join Date: Jan 2006
Location: Co.Armagh, N.I
Posts: 2,909
Blog Entries: 1
Ok I'd apprecriate some help.

If I was to create the following tables, would my code be appropriate?

Hotel(hotelNo, hotelName, city)
Room(roomNo, hotelNo, type, price)

CREATE TABLE Hotel (
hotelNo INTEGER,
hotelName VARCHAR(20),
City CHAR(20),

CREATE TABLE Room (
roomlNo INTEGER,
hotelNo VARCHAR(20),
type CHAR(20),
price CHAR (3)

I haven't much of a clue about SQL code. Intergers etc. See if you can make it better.
__________________
Quote:
Originally Posted by FlipFX View Post
Damn, Mark is a genius
  Reply With Quote