-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
21 lines (19 loc) · 809 Bytes
/
Copy pathinit.sql
File metadata and controls
21 lines (19 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- Create the table
CREATE TABLE IF NOT EXISTS parking_data (
id SERIAL PRIMARY KEY,
garage_name VARCHAR(50) NOT NULL,
garage_fullness VARCHAR(20) NOT NULL,
timestamp TIMESTAMP NOT NULL
);
---- Insert sample data
--INSERT INTO parking_data (garage_name, garage_fullness, timestamp) VALUES
--('North_Garage', '75% Full', '2023-05-01 08:00:00'),
--('South_Garage', '50% Full', '2023-05-01 08:00:00'),
--('West_Garage', '90% Full', '2023-05-01 08:00:00'),
--('South_Campus_Garage', '30% Full', '2023-05-01 08:00:00'),
--('North_Garage', '80% Full', '2023-05-01 09:00:00'),
--('South_Garage', '60% Full', '2023-05-01 09:00:00'),
--('West_Garage', '95% Full', '2023-05-01 09:00:00'),
--('South_Campus_Garage', '40% Full', '2023-05-01 09:00:00');
---- Verify the data
--SELECT * FROM parking_data;