Database Exercises
Sakila database/t1
  1. Set sakila database as active
  2. What tables are in the database?
  3. What is the structure of the actor table?
  4. Insert a record into the actor table with first_name=Teppo, last_name=Testi
  5. Display last names from the actor table
  6. Same as above but each last name only once
  7. Display all fields from the actor table
  8. Ordered by last_update
  9. Reverse order
  10. Date formatted as DD.MM.YYYY
  11. Date formatted as DD.MM.YYYY with custom headers
  12. Display the first 5 rows from the actor table
  13. Display rows 6-10 from the actor table
  14. Display all where first name is Christian
  15. Display all where first name is Christian or Helen
  16. Display those where actor_id is greater than 50
  17. Those where actor_id is between 50-60
  18. Those whose first name starts with letter J
  19. Those whose first name starts with letters JA
  20. Those whose name contains the letter A
  21. Those whose name's second letter is A
  22. Display the first 3 characters of the first name
  23. Print first name and last name in the same field
  24. Print initials
  25. Print full name and initials
  26. How many records are in the actor table
  27. How many first names start with the letter J
  28. Print first name and its frequency
  29. Print first name and its frequency ordered by frequency in descending order
  30. Like above but show only those with at least 3 occurrences
  31. Display the structure of the film table
  32. Average film length
  33. Same with one decimal precision
  34. Minimum, maximum and average film length



Toggle Menu