SQL
SQL
Q2) Write a query to create a table in ‘store’ Database with name “orderDemo” which will have 5
columns
USE store;
order_date date,
quantity int );
Q3) Write a query to create a new table named “orderDetail” which is the exact copy of “orderDemo”
Table.
Q6) Insert minimum 5 records at once in “orderDetail” table. (As per your choice)
(2,'Book','2023-01-01',520,2),
(3,'Ink','2023-01-12',50.55,1),
(4,'Map','2023-01-19',25,5),
(5,'Bottle','2023-01-30',600,1),
(6,'Marker','2023-02-05',80,4);
Q 7) Insert 2 records only into id, Product name and Price column.
(7,'pen',65.90), (8,'Tape',10);
salary int,
department varchar(50),
dob date );
(101,'Jack',2000,'HR','1997-05-19’),
(102,'Jack',NULL,'HR',NULL),
(103,'Mack',6000,'Developer','1997-03-10’),
(104,'Peter',4000,'Tester','1998-07-16’),
(105,'Tom',3000,'HR','1998-11-03’),
(106,'Leo',2500,'Developer','1997-10-10’),
(107,'Roger',5300,'Accounts','1997-06-17’),
(108,'Mike',2000,NULL,'1998-03-09’),
(109,'Paul',4800,'Developer','1998-12-28’),
(110,'Hannah',2000,'Accounts','1999-09-26');
Q11) Write a query to display all data of name and dob column of employee table.