A Guide to SQL, Ninth Edition Solutions 3-5
Answers to Solmaris Condominium Group Exercises
1.
In Oracle, the command is:
CREATE TABLE VACATION_UNIT
(CONDO_ID NUMBER(4,0) PRIMARY KEY,
LOCATION_NUM NUMBER(2,0),
In SQL Server, the command is:
CREATE TABLE VACATION_UNIT
(CONDO_ID NUMERIC(4,0) PRIMARY KEY,
LOCATION_NUM NUMERIC(2,0),
UNIT_NUM CHAR(3),
In Access, the command is:
CREATE TABLE VACATION_UNIT
(CONDO_ID NUMBER PRIMARY KEY,
LOCATION_NUM NUMBER,
UNIT_NUM CHAR(3),
To describe the layout and characteristics of the VACATION_UNIT table, use the DESCRIBE command in Oracle,
the Documenter in Access, and the stored procedure Exec sp_columns in SQL Server.
2.
To display the contents of the BOAT_SLIP table, use:
SELECT *
FROM VACATION_UNIT;
3.
5. Use the DESCRIBE command or the Documenter (Access) or exec sp_columns (SQL Server)to view the