You are on page 1of 4

Database Query Practice Exercise

Video Database

Customer
Home Work
Custom Last First Date of Gen Date Employer
Address Telepho Telepho Email Address Employer
er ID Name Name Birth der Joined Address
ne ne
201 JOHNSO MICHEL Ruby Park, St. 1969.02. (246) (246) michelej@bclub.com F 2006.01. Baker's Rockley,
N LE Philip 15 431- 433- 25 Night Club Christ
2916 2196 Church
202 CHANDL TYRONE Bank Hall, St. 1969.03. (246) (246) chandler@hotmail.co M 2006.01. GE Bridgetown
ER Michael 05 431- 422- m 03 Electronic , St.
8971 1119 s Michael
203 BANFIEL SHIRLEY 71 Bayfield 1970.10. (246) sheba@email.com F 2006.01. Blue Log Hastings,
D Development, 26 423- 06 Christ
St. Philip 5441 Church
204 ISIDORE ESTHER 4 Mt. 1968.11. (246) (246) F 2006.01. Queen River Road,
Standfast, St. 10 421- 422- 05 Elizabeth St. Michael
James 1247 1999 Hospital
205 JOHNSO ANGELA Cane Gardens, 1971.12. (246) (246) Connell@tsb.bb M 2006.01. Transport Roebuck
N St. Thomas 10 433- 417- 03 Board Street, St.
9172 4171 Michael
206 KELLMA ARLENE St. Patricks, 1974.06. (246) (246) sypher@hotmail.com F 2006.01. KMGP Hastings,
N Christ Church 10 429- 426- 03 Christ
2031 2979 Church
207 PAYNE REBA Foster Hall, St. 1967.01. (246) (246) Rebapay@sunbeach. F 2006.01. Cove Hastings,
George 03 423- 423- net 03 Crystal Christ
6823 9741 Hotel Church
208 GRANT FREDERI Grape Hall, St. 1962.09. (246) M 2006.01. Johnstone Two Mile
CK Lucy 09 417- 15 Hill, St.
2280 Michael
209 SMITH IRENE Ashton Hall, 1945.07. (246) storm@hotmail.com F 2006.01. J&J Rockley,
St. Peter 07 433- 05 Christ
3302 Church
210 WICKHA THOMA Boscobelle, St. 1943.04. (246) (246) M 2006.01. JG Cave Hill,
M S Andrew 06 429- 422- 18 Retiremen St. Michael
2916 1231 t Home
211 CATWEL PAULIN Braggs Hill, St. 1970.02. (246) catpur@yahoo.com F 2006.01. Caribbean Two Mile
L E Joseph 02 433- 06 Union Hill, St.
8791 Michael

Rental
Customer Tape Date Rental Date
ID ID Rented Fee Due
201 1021 2008.01.0 $3.00 2021.06.
01 9 25
202 1201 2006.01.0 $2.00 2021.06.
23 7 09
207 1515 2006.01.0 $3.00 2021.06.
71 7 09
201 2121 2006.01.0 $2.00 2021.06.
41 7 16
210 2412 2006.01.0 $2.25 2021.06.
51 7 14
209 3072 2006.01.1 $3.00 2021.06.
01 1 07
207 3072 2006.01.1 $3.00 2021.06.
01 2 20
204 4211 2006.01.1 $3.25 2021.06.
03 0 28
208 4211 2006.01.1 $3.25 2021.06.
03 0 20
205 4348 2006.01.0 $2.75 2021.06.
10 9 14
209 4574 2006.01.0 $3.25 2021.06.
82 7 26
203 5210 2006.01.0 $2.00 2021.06.
12 8 14
201 6336 2006.01.1 $2.25 2021.06.
02 3 06
211 6336 2006.01.1 $2.25 2021.06.
02 5 20
206 6713 2006.01.1 $2.25 2021.06.
47 3 01
211 6713 2006.01.1 $2.25 2021.06.
47 5 15

Tape
Tape Type Rat Minut Cost Per Quantity in
Title
ID Code ed es Tape Stock
1021 DESTINY'S CHILD - ON THE MU G 90.00 $9.00 20.00
01 WALL
1201 THE MATRIX SC R 130.0 $12.00 10.00
23 0
1515 THE GOOD, THE BAD & UGLY WE PG 75.00 $9.00 15.00
71 13
2121 JAWS 2 HO TV 90.00 $7.00 12.00
41 MA
2412 DIRTY DANCING DR PG 86.00 $6.00 25.00
51 13
3072 DUNGEONS & DRAGONS AD PG 75.00 $8.00 10.00
01 13
4211 JAMES AND THE GIANT AD G 120.0 $10.25 15.00
03 PEACH 0
4348 THE TEN COMMANDMENTS CL G 210.0 $12.00 22.00
10 0
4574 TAI CHIMASTER MA PG 93.00 $8.25 15.00
82 13
5210 YOUNG SHERLOCK HOLMES MY R 79.00 $5.25 16.00
12
6336 ABOVE THE LAW AC R 120.0 $7.25 10.00
02 0
6713 YOU'VE GOT MAIL RO G 92.00 $5.25 18.00
47
Based on the tables above, complete the following queries:

1. List the female customers who joined the club after January 3, 2006.
Field: First name Gender Date joined
Table: Customer Customer Customer
Sort:
Show:
Criteria: “ “F” After January 3,2006
Or:

2. List the ID of customers who rented a movie rated PG13 or G.


Field: Customer ID Rated Tape ID
Table:
Sort:
Show:
Criteria: “PG13 or G”
Or: “G”

3. List the title of the PG13 tapes with cost per tape more than $8 that were rented on
January 7, 2006.
Field: Rated Day rented
Table: Tape Rental Rental
Sort:
Show:
Criteria: “Pg 13” >$8.00
Or:

4. List the tape ID and type code of all the tapes that has the word ‘the’ in the title.
Field: Tape ID Type code Title
Table: Tape Tape Tape
Sort:
Show:
Criteria: “*THE*”
Or:
5. List the first name, last name and address of customers whose employer lives in St.
Michael.
Field: First name Last name Employer Address
Table: Customer Customer Customer

Show:
Criteria: “*St.Michael”
Or:

You might also like