1. Homepage
  2. Homework
  3. CS425 Database Organization - Assignment 1: Relational Algebra
This question has been solved

CS425 Database Organization - Assignment 1: Relational Algebra

Engage in a Conversation
USIITCS425Database OrganizationSQLIllinois Institute of TechnologyRelational Algebra

Homework Assignment 1

Question 1.1.1

List the titles of all the books held by the bookstores in region ‘BS-IL’. (Hint: Books in inventory are considered as “held by the stores”) CourseNana.COM

Question 1.1.2

List the query result as “book title, store name, store region, quantity” where the book price is greater than 20. (Hint: only consider the books held by the stores) CourseNana.COM

Question 1.1.3

List the books (result: bid, title) held by the stores that can receive books from ‘NS-IL’ and quantity is less than 5. (Hint: only consider the stores directly receiving books from ‘NS-IL’) CourseNana.COM

Question 1.1.4

List the books (result: bid, title) which are held by all the stores in the ‘US’. (Hint: only national stores with region ‘US’, not including other regional stores in the US) CourseNana.COM

Question 1.1.5

List the books (result: bid, title) where the books’ quantity in ‘BS-US’ store is more than that in ‘NS-US’ store. (Hint: only count the books held by both ‘BS-US’ and ‘NS-US’) CourseNana.COM

Question 1.1.6

List the books (result: bid, title) only held by the stores with rating greater than 1. CourseNana.COM

Question 1.1.7

List all the ‘US’ stores that hold “Database” book (result: title, region). (Hint: only national stores with region ‘US’, not including other regional stores in the US) CourseNana.COM

Question 1.1.8

List the books and their total values (result: title, values) in all the stores’ inventory. (Hint: values = ((quantity + ordered) x price)) CourseNana.COM

Question 1.1.9

List all the stores and the counts of the stores they directly receive books from (result: sid, count) in the database. (Hint: if a store does not get books from any store, return constant 0) CourseNana.COM

Question 1.1.10

List all the stores where the average price of the books held by the store is lowerthan 30 (result: sid, avg_price). CourseNana.COM

Question 1.1.11

List all the stores and the title(s) of the book(s) with the latest publication year in each store without using max in the query (result: sid, title). CourseNana.COM

Question 1.1.12

List the books (result: bid, title) which are held by region ‘NS-US’ stores and the stores that they can directly receive books from, as well as the stores that they can ship to. CourseNana.COM

  CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
US代写,IIT代写,CS425代写,Database Organization代写,SQL代写,Illinois Institute of Technology代写,Relational Algebra代写,US代编,IIT代编,CS425代编,Database Organization代编,SQL代编,Illinois Institute of Technology代编,Relational Algebra代编,US代考,IIT代考,CS425代考,Database Organization代考,SQL代考,Illinois Institute of Technology代考,Relational Algebra代考,UShelp,IIThelp,CS425help,Database Organizationhelp,SQLhelp,Illinois Institute of Technologyhelp,Relational Algebrahelp,US作业代写,IIT作业代写,CS425作业代写,Database Organization作业代写,SQL作业代写,Illinois Institute of Technology作业代写,Relational Algebra作业代写,US编程代写,IIT编程代写,CS425编程代写,Database Organization编程代写,SQL编程代写,Illinois Institute of Technology编程代写,Relational Algebra编程代写,USprogramming help,IITprogramming help,CS425programming help,Database Organizationprogramming help,SQLprogramming help,Illinois Institute of Technologyprogramming help,Relational Algebraprogramming help,USassignment help,IITassignment help,CS425assignment help,Database Organizationassignment help,SQLassignment help,Illinois Institute of Technologyassignment help,Relational Algebraassignment help,USsolution,IITsolution,CS425solution,Database Organizationsolution,SQLsolution,Illinois Institute of Technologysolution,Relational Algebrasolution,