Initial Commit
This commit is contained in:
BIN
Assignments/As4/A4.pdf
Normal file
BIN
Assignments/As4/A4.pdf
Normal file
Binary file not shown.
BIN
Assignments/As4/IsaacShoebottom_As4.docx
Normal file
BIN
Assignments/As4/IsaacShoebottom_As4.docx
Normal file
Binary file not shown.
BIN
Assignments/As4/IsaacShoebottom_As4.pdf
Normal file
BIN
Assignments/As4/IsaacShoebottom_As4.pdf
Normal file
Binary file not shown.
5
Assignments/As4/Problem101.sql
Normal file
5
Assignments/As4/Problem101.sql
Normal file
@ -0,0 +1,5 @@
|
||||
select PATRON.PAT_ID, PAT_FNAME, PAT_LNAME
|
||||
from PATRON
|
||||
left join CHECKOUT on PATRON.PAT_ID = CHECKOUT.PAT_ID
|
||||
where CHECK_NUM is NULL
|
||||
order by PAT_LNAME, PAT_FNAME;
|
3
Assignments/As4/Problem60.sql
Normal file
3
Assignments/As4/Problem60.sql
Normal file
@ -0,0 +1,3 @@
|
||||
SELECT BOOK_YEAR
|
||||
FROM BOOK
|
||||
GROUP BY BOOK_YEAR;
|
3
Assignments/As4/Problem61.sql
Normal file
3
Assignments/As4/Problem61.sql
Normal file
@ -0,0 +1,3 @@
|
||||
select BOOK_SUBJECT
|
||||
from BOOK
|
||||
group by BOOK_SUBJECT;
|
4
Assignments/As4/Problem65.sql
Normal file
4
Assignments/As4/Problem65.sql
Normal file
@ -0,0 +1,4 @@
|
||||
select BOOK_NUM, BOOK_TITLE, BOOK_COST
|
||||
from BOOK
|
||||
where BOOK_COST = 59.95
|
||||
order by BOOK_NUM;
|
4
Assignments/As4/Problem72.sql
Normal file
4
Assignments/As4/Problem72.sql
Normal file
@ -0,0 +1,4 @@
|
||||
select PAT_ID, PAT_FNAME, PAT_LNAME
|
||||
from PATRON
|
||||
where PAT_TYPE = 'student'
|
||||
order by PAT_ID;
|
4
Assignments/As4/Problem73.sql
Normal file
4
Assignments/As4/Problem73.sql
Normal file
@ -0,0 +1,4 @@
|
||||
select PAT_ID, PAT_FNAME, PAT_LNAME, PAT_TYPE
|
||||
from PATRON
|
||||
where PAT_LNAME like 'c%'
|
||||
order by PAT_ID;
|
4
Assignments/As4/Problem74.sql
Normal file
4
Assignments/As4/Problem74.sql
Normal file
@ -0,0 +1,4 @@
|
||||
select AU_ID, AU_FNAME, AU_LNAME
|
||||
from AUTHOR
|
||||
where AU_BIRTHYEAR is NULL
|
||||
order by AU_ID;
|
2
Assignments/As4/Problem78.sql
Normal file
2
Assignments/As4/Problem78.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select count(BOOK_NUM) as `Number of Books`
|
||||
from BOOK;
|
2
Assignments/As4/Problem79.sql
Normal file
2
Assignments/As4/Problem79.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select count(DISTINCT BOOK_SUBJECT) as `Number of Subjects`
|
||||
from BOOK;
|
3
Assignments/As4/Problem80.sql
Normal file
3
Assignments/As4/Problem80.sql
Normal file
@ -0,0 +1,3 @@
|
||||
select count(BOOK_NUM) as `Available Books`
|
||||
from BOOK
|
||||
where PAT_ID is NULL;
|
2
Assignments/As4/Problem81.sql
Normal file
2
Assignments/As4/Problem81.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select max(BOOK_COST) as `Most Expensive`
|
||||
from BOOK;
|
2
Assignments/As4/Problem82.sql
Normal file
2
Assignments/As4/Problem82.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select min(BOOK_COST) as `Least Expensive`
|
||||
from BOOK;
|
2
Assignments/As4/Problem83.sql
Normal file
2
Assignments/As4/Problem83.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select count(DISTINCT PAT_ID) as `DIFFERENT PATRONS`
|
||||
from CHECKOUT;
|
4
Assignments/As4/Problem84.sql
Normal file
4
Assignments/As4/Problem84.sql
Normal file
@ -0,0 +1,4 @@
|
||||
select BOOK_SUBJECT, count(BOOK_SUBJECT) as `Books In Subject`
|
||||
from BOOK
|
||||
group by BOOK_SUBJECT
|
||||
order by count(BOOK_SUBJECT) desc, BOOK_SUBJECT;
|
4
Assignments/As4/Problem85.sql
Normal file
4
Assignments/As4/Problem85.sql
Normal file
@ -0,0 +1,4 @@
|
||||
select AU_ID, count(BOOK_NUM) as `Books Written`
|
||||
from WRITES
|
||||
group by AU_ID
|
||||
order by count(BOOK_NUM) desc, AU_ID;
|
Reference in New Issue
Block a user