-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQL-Room.txt
More file actions
30 lines (26 loc) · 727 Bytes
/
SQL-Room.txt
File metadata and controls
30 lines (26 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DROP TABLE Rooms;
CREATE TABLE Rooms
(
id INTEGER NOT NULL
PRIMARY KEY
GENERATED ALWAYS AS IDENTITY
(START WITH 1, INCREMENT BY 1),
name VARCHAR(20) NOT NULL,
description VARCHAR(255) NOT NULL
);
INSERT INTO MARKBENNISON.ROOMS (NAME, DESCRIPTION)
VALUES ('A001', 'Lecture Theatre (Large)'),
('A002', 'Lecture Theatre (Small)'),
('A101', 'Science Lab'),
('A102', 'Science Lab'),
('A103', 'Innovation Space'),
('A104', 'Classroom'),
('A201', 'Computer Lab'),
('A202', 'Computer Lab'),
('B001', 'Arts Theatre'),
('B101', 'Dance Studio'),
('B102', 'Classroom'),
('B103', 'Classroom'),
('B104', 'Classroom'),
('B201', 'Art Studio #1'),
('B202', 'Art Studio #2');