Fork, Commit, Merge - Hard Issue (SQL) #1444
Labels
first-contributor
first-contributors
good first issue
Good for newcomers
hard
help wanted
Extra attention is needed
sql
sqlite
up-for-grabs
Fork, Commit, Merge - Hard Issue (SQL)
Multi-table SQL Exercises: Querying SELLER, STOCKS, and PRODUCT Data
Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!
Issue created by Shree-77.
How to Get Started
Navigate to the
tasks/sql/hard
directory from the root of your project.Then open the
displayItems.sql
file and start implementing your solution!Description
Consider the following relational database schema:
Create the Following Tables:
Insert values into the SELLER table:
Insert values into the STOCKS table:
Insert values into the PRODUCT table:
Display the following :
(a) Display name of the sellers and their bank account number who stocked at least 24 different products with price higher than 1000 rupees in the last one year.
(b) Use nested query to display name of the sellers and their email address; who have in stock products with expiry date past today’s date.
(c) Display the name of the products that are in stock by at least one seller and also those that are not in stock by any of the sellers.
(d) Use join query to display name of the sellers and name of the products stocked by them during March 23, 2020 and June 30, 2020.
(e) Display name of sellers who have in stock maximum number of different products and minimum number of different products.
For this issue, you need to have sqlite installed to your local machine.
Check out README.md for more instructions of how to install sqlite and how to make a pull request.
Feel free to ask any questions here if you have some problems!
Also, kindly give this project a star to enhance its visibility for new developers!
The text was updated successfully, but these errors were encountered: