Book1 (id, title, authors, pubyear, pubmonth, pubday, edition, publisher, isbn13, language, series, pages) Book2 (id,_bo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Book1 (id, title, authors, pubyear, pubmonth, pubday, edition, publisher, isbn13, language, series, pages) Book2 (id,_bo
Question 1: [2 marks] Given four datasets that are stored in one relational database as separate relations. (1) Write an SQL query "Find the top 5 books that have the highest ratings and 5 books that have the lowest ratings, return their SalesRank (sorted in descending order), titles, publishers, and number of pages". (2) Which table schema(s) is/are used to answer the above query?