[SOLVED] CS 432: Databases   Assignment 2: Advanced SQL and Formal Relational Query Languages

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Assg-2-qkacde.zip (7.4 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Question 1 carries 20 marks with each query given equal weightage (1 mark). Question 2 carries 5 marks with each query given equal weightage (1 mark). No partial marks for any questions.

 

  1. Implement the backend connectors (some references: [1],[2 ])​ for the E-Commerce database created in Assignment 1. Ensure that input sanitization (reference: [3])​ checks are performed before the query is executed on the database. Submit a method definition for Questions 1-20​ of the SQL queries implemented in Assignment 1.​
  2. Write the tuple relational calculus and the domain relational calculus queries for the following:
    1. List all electronics products in the price range 10k-20k.
    2. Find email addresses of all the users who reside in the city ‘Mumbai’ and have made a total purchase greater than or equal to Rs. 5000 in the past.
    3. List all books published after 2001.
    4. List all products that were added to the database after 27/07/2019.
    5. List all retailer ids whose products, userid = 55 has purchased.
  • Assg-2-qkacde.zip