Docsity

Lab Assignment: Tables, Data Insertion, and SQL Queries in MyStore Database, Schemes and Mind Maps of Database Programming

Toggle sidebar
bg1
Database
Lab Work – 2
1. Create a Database names “MyStore”.
2. Create a Table named “Suppliers” in the Database with the following field
3. Create a Table named “Products” in the Database with the following fields:
4. Insert into the “Suppliers” table
5. Insert into the “Products” table
6. Write SQL statements to do the following:
Database assignment saurav dev
pf3
pf4
pf5

Partial preview of the text

Download Lab Assignment: Tables, Data Insertion, and SQL Queries in MyStore Database and more Schemes and Mind Maps Database Programming in PDF only on Docsity!

Database Lab Work – 2

  1. Create a Database names “MyStore”.
  2. Create a Table named “Suppliers” in the Database with the following field
  3. Create a Table named “Products” in the Database with the following fields:
  4. Insert into the “Suppliers” table
  5. Insert into the “Products” table
  6. Write SQL statements to do the following:

a) Show all records from both tables b) Show the names and the prices of all products c) Show the ProductID and Quantity of all the products

h) Show the Product_code and Quantity of the products having quantity less than or equal to 5000. i) Show the price of “WaiWai” j) Show all the detail of the products which are expensive than 500 and having quantity greater than 2000

k) Change the price of “waiwai” to 30 l) Change the quantity of cream to 1500 m) Delete the data of “Waiwai” from the products table o) In the products table set the value of the column “info” to “from CG group” where supplier is equal to 3