-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStreamTrack.session.sql
More file actions
47 lines (35 loc) · 1.21 KB
/
StreamTrack.session.sql
File metadata and controls
47 lines (35 loc) · 1.21 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
select * from User;
select * from User where UserID = 'XsFRRMcsDgTHbtpJBaylSZcqNWg1';
-- delete from User where UserID = 'XsFRRMcsDgTHbtpJBaylSZcqNWg1';
select * from List;
select * from ListContent;
select * from ContentPartial ORDER BY Title;
select * from ContentDetail;
select * from ContentDetail where TMDB_ID = 'tv/3696';
-- Update ContentDetail SET Title = 'Lebron', Overview = 'Bruh' WHERE TMDB_ID = 'movie/39939';
select * from ContentDetail where VerticalPoster LIKE 'https://www%' OR HorizontalPoster LIKE 'https://www%';
select * from ContentDetail where VerticalPoster LIKE '%svg%' OR HorizontalPoster LIKE '%svg%';
select * from ContentGenre;
select * from Genre;
select * from StreamingService;
select * from StreamingOption;
SELECT
u.UserID,
u.FirstName,
u.LastName,
g.GenreID,
g.Name AS GenreName
FROM User u
JOIN UserGenre ug ON u.UserID = ug.UsersUserID
JOIN Genre g ON ug.GenresGenreID = g.GenreID
ORDER BY u.UserID, g.Name;
SELECT
u.UserID,
u.FirstName,
u.LastName,
s.ServiceID,
s.Name AS ServiceName
FROM User u
JOIN UserService us ON u.UserID = us.UsersUserID
JOIN StreamingService s ON us.StreamingServicesServiceID = s.ServiceID
ORDER BY u.UserID, s.Name;