Entering content frame

hotel 

Create the table hotel and fill it with the values listed below.

Table Structure

CREATE TABLE hotel
(hno     FIXED(4) PRIMARY KEY CONSTRAINT hno BETWEEN 1 AND 9999,
 name    CHAR(20) NOT NULL,
 zip     CHAR(5) CONSTRAINT zip like '(0-9)(0-9)(0-9)(0-9)(0-9)',
 city    CHAR(12) NOT NULL,
 address CHAR(25) NOT NULL)

Content

HNO

NAME

ZIP

CITY

ADDRESS

10

Congress

89477

Detroit

155 Beechwood St.

20

Los Angeles

86159

Cincinatti

1499 Grove Street

30

Regency

48153

Portland

477 17th Avenue

40

Eight Avenue

21109

Los Angeles

112 8th Avenue

50

Lake Michigan

20097

Los Angeles

354 OAK Terrace 43

60

Airport

60313

New Orleans

650 C Parkway

70

Empire State

80805

New York

65 Yellostone Dr.

80

Midtown

20251

Los Angeles

12 Barnard Street

90

Long Beach

45193

Long Beach

200 Yellostone Dr.

100

Dallas

50668

Dallas

1980 34th St.

110

Atlantic

81245

New York

111 78th Street

120

Sunshine

12249

Los Angeles

35 Broadway 77

130

Star

40223

Hollywood

13 Beechwood Place 2

140

River Boat

70469

New York

788 MAIN STREET 14

150

Indian Horse

69117

Santa Clara

16 MAIN STREET

Other example tables

 

Leaving content frame