forked from raj-ravan/Hacktoberfest2022
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabase.sql
More file actions
33 lines (30 loc) · 777 Bytes
/
Database.sql
File metadata and controls
33 lines (30 loc) · 777 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
31
32
33
select studentID, FullName, sat_score, recordUpdated
from student
where
(
studentID between 1 and 5
or studentID = 8
or FullName like '%Maximo%'
)
and sat_score NOT in (1000, 1400);
select studentID, FullName, sat_score
from student
where
(
studentID between 1
and 5 -- inclusive
or studentID = 8
or FullName like '%Maximo%'
)
and sat_score NOT in (1000, 1400)
order by FullName DESC;
select Candidate, Election_year, sum(Total_$), count(*)
from combined_party_data
where Election_year = 2016
group by Candidate, Election_year
having count(*) > 80
order by count(*) DESC;
CREATE USER my723acct IDENTIFIED BY kmd26pt
DEFAULT TABLESPACE user_data
TEMPORARY TABLESPACE temporary_data
QUOTA 10M on user_data QUOTA 5M on temporary_data;