lecture+sql+code (2)
lecture+sql+code (2)
tracks
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
album_id integer NOT NULL,
title character varying(1023) NOT NULL,
length integer NOT NULL,
"position" integer NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO tracks (album_id, title, length, position) VALUES (1, 'The Edge of
Night', 225, 1);
INSERT INTO tracks (album_id, title, length, position) VALUES (1, 'Silhouette
Dreams', 270, 2);
INSERT INTO tracks (album_id, title, length, position) VALUES (1, 'Shadow Dance',
315, 3);
INSERT INTO tracks (album_id, title, length, position) VALUES (1, 'Twilight
Echoes', 245, 4);
INSERT INTO tracks (album_id, title, length, position) VALUES (1, 'Midnight''s
Veil', 235, 5);
INSERT INTO tracks (album_id, title, length, position) VALUES (1, 'Dusk to Dawn',
280, 6);
INSERT INTO tracks (album_id, title, length, position) VALUES (1, 'Whispers of the
Past', 300, 7);
INSERT INTO tracks (album_id, title, length, position) VALUES (2, 'Rose Thorn
Lullaby', 230, 1);
INSERT INTO tracks (album_id, title, length, position) VALUES (2, 'Bramble''s
Embrace', 265, 2);
INSERT INTO tracks (album_id, title, length, position) VALUES (2, 'Whispering
Winds', 295, 3);
INSERT INTO tracks (album_id, title, length, position) VALUES (2, 'Thorns of
Memory', 215, 4);
INSERT INTO tracks (album_id, title, length, position) VALUES (2, 'Secrets in the
Vines', 285, 5);
INSERT INTO tracks (album_id, title, length, position) VALUES (2, 'Echoes of the
Lost', 310, 6);
INSERT INTO tracks (album_id, title, length, position) VALUES (3, 'Moonlit
Serenade', 260, 1);
INSERT INTO tracks (album_id, title, length, position) VALUES (3, 'Shadows Under
the Moon', 230, 2);
INSERT INTO tracks (album_id, title, length, position) VALUES (3, 'Gaze of the
Ancients', 280, 3);
INSERT INTO tracks (album_id, title, length, position) VALUES (3, 'Nocturnal
Whispers', 305, 4);
INSERT INTO tracks (album_id, title, length, position) VALUES (3, 'Eclipse of the
Heart', 255, 5);
INSERT INTO tracks (album_id, title, length, position) VALUES (3, 'Lunar
Reflection', 290, 6);
INSERT INTO tracks (album_id, title, length, position) VALUES (4, 'Orbiting
Solitude', 330, 1);
INSERT INTO tracks (album_id, title, length, position) VALUES (4, 'Auroras Beyond',
280, 2);
INSERT INTO tracks (album_id, title, length, position) VALUES (4, 'Solar Winds',
295, 3);
INSERT INTO tracks (album_id, title, length, position) VALUES (4, 'Voyage of the
Comet', 225, 4);
INSERT INTO tracks (album_id, title, length, position) VALUES (4, 'Stellar Drift',
315, 5);
INSERT INTO tracks (album_id, title, length, position) VALUES (4, 'Eclipsing Suns',
275, 6);
INSERT INTO tracks (album_id, title, length, position) VALUES (5, 'Void Whispers',
245, 1);
INSERT INTO tracks (album_id, title, length, position) VALUES (5, 'Cosmic Silence',
320, 2);
INSERT INTO tracks (album_id, title, length, position) VALUES (5, 'Nebular Dreams',
290, 3);
INSERT INTO tracks (album_id, title, length, position) VALUES (5, 'Galactic
Echoes', 235, 4);
INSERT INTO tracks (album_id, title, length, position) VALUES (5, 'Asteroid''s
Tale', 285, 5);
INSERT INTO tracks (album_id, title, length, position) VALUES (5, 'Beyond the Event
Horizon', 330, 6);
INSERT INTO tracks (album_id, title, length, position) VALUES (6, 'Crescent
Lullaby', 240, 1);
INSERT INTO tracks (album_id, title, length, position) VALUES (6, 'Shade and
Light', 220, 2);
INSERT INTO tracks (album_id, title, length, position) VALUES (6, 'Tides of
Tranquility', 305, 3);
INSERT INTO tracks (album_id, title, length, position) VALUES (6, 'Lunar Rhapsody',
290, 4);
INSERT INTO tracks (album_id, title, length, position) VALUES (6, 'Reflections in
the Dark', 270, 5);
INSERT INTO tracks (album_id, title, length, position) VALUES (6, 'The Quiet
Between', 235, 6);