Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

A.

Simple queries
1. Readers that are students
2. Books published by Teora
3. Books that start with A
4. Authors named Marin reda
!. "n#lish and $ren%h authors
&. Books that are not published by Teora' (umanitas or Rao
). $orei#n authors *not Romanian+
,. Books published be-ore 2..!
/. Books published in the last ! years
1.. ro-essors born in a spe%i-i% year
11. 0tudents born in a spe%i-i% year
12. 0tudents older than 2.
B. Join queries
1. Readers that borrowed books
2. Books borrowed by students and pro-essors
3. Authors that wrote a spe%i-i% book
4. Readers that borrowed books published in 2..!
!. Books borrowed by a spe%i-i% reader
&. Books borrowed last month
). Books that ha1e to be returned today
C. Left join queries
1. Readers that ne1er borrowed books
2. Books -rom Teora that were ne1er borrowed
D. Total queries
1. 2umber o- readers
2. 2umber o- students
3. 2umber o- books published by Teora
4. 3alue o- books borrowed this month
!. 2umber o- readers o- ea%h type
&. The most e4pensi1e book in the library
). 2umber o- authors -or ea%h book
,. 2umber o- books borrowed by a spe%i-i% reader that ha1e to be returned today
/. 2umber o- books -or ea%h publishin# house
1.. 2umber o- readers that borrowed books written by a spe%i-i% author
11. 2umber o- authors published by a spe%i-i% publishin# house
E. Action queries
Make Table
1. 5reate a table with students.
2. 5reate a table with books published by Teora.
3. 5reate a table with Romanian authors.
Append
1. Add re%ords with pro-essors -rom Readers into table 0tudents.
2. Add re%ords with books Rao -rom Books
3. Add re%ords -rom 6"RMA2 A7T(8R0 into Authors
Delete
1. 9elete books published by (umanitas in a spe%i-i% year
2. 9elete readers older than &!
pdate
1. Add 1.: to the pri%e o- all books published in 2..4 by Teora and
(umanitas.
2. 5han#e address -rom other readers into Bu%harest.
3. 5han#e Romanian and $ren%h nationality into $ran%ophone.

You might also like