Question: Q11. Write an SQL query to do the following a. Create table Shop with the given details. (2 Marks) It_No It_Name DoP Quantity Number(3). Varchar2(25)

 Q11. Write an SQL query to do the following a. Create

Q11. Write an SQL query to do the following a. Create table Shop with the given details. (2 Marks) It_No It_Name DoP Quantity Number(3). Varchar2(25) Date Number(2) Primary Key Default systemdate b. Change datatype of It_No to from Number (3) to Varchar2(4). (1 Mark) c. Insert the following records into the table Shop. (1 Mark) It_No It_Name DOP Quantity P222 Book 20/05/2019 18 P444 Pencil 15/10/2018 20 P666 Ruler 06/06/2020 10 d. Display Item no and Quantity of item with name Book (1 Mark) Q12 : Use the Shop table for the following queries a. Display all details of items purchased after the date 15/10/2018. (1 Mark) b. Display all details of item with DoP is 15/10/2018 or Quantity is 10. (1 Mark) c. Display item name of items in the descending order of DoP. (1 Mark) d. Display Item No. Name and Quantity after multiply by 2. In the output show the column heading as New Quantity (1 Mark) e. Delete all details of the item Ruler from the table shop. (1 Mark)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!