-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSQL.txt
45 lines (34 loc) · 897 Bytes
/
SQL.txt
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
SELECT userLocation, name
FROM user1;
SELECT city
FROM tweets;
SELECT *
FROM tweets
WHERE userId = 16285429 OR utcDate = 'Dec 27 2008 3:00PM';
SELECT *
FROM user1
WHERE userLocation = 'Afghanistan';
SELECT tweet
FROM tweets
WHERE twid > 905750092 AND userId > 16200000;
SELECT user1.*, tweets.tweet
FROM tweets, user1
WHERE tweets.userId = user1.userId;
SELECT user1.userId, tweets.tweet
FROM tweets, user1
WHERE tweets.userId = user1.userId AND user1.userId > 10000000;
SELECT utcDate
FROM tweets, user1
WHERE user1.userId = tweets.userId AND userLocation = 'Cardiff';
SELECT COUNT(*)
FROM user1
WHERE userLocation = 'Mexico';
SELECT COUNT(tweet)
FROM tweets
WHERE userId = 16060889;
SELECT userId
FROM user1, tweets
WHERE userId = 123;
SELECT user.userId, tweets.*
FROM user1, tweets
WHERE user1.userId = tweets.userId AND userId = 'hello';