You are on page 1of 1

MySQL Assignment-6

Select query with AND,OR,NOT Operator

1.Create a database SHOP

2.open the database SHOP

3.create the table product with the following

Structure.

Field Datatype Constraint


Name
Pid Int Primary
key
Pname Varchar(26) Not Null
Price decimal
DOP date

4.

Insert 5 records of your choice.

5.

WAQ to display all the records.

6.WAQ to display records where price

is between 5000 to 10,000

7.WAQ to display records where product name is

Either Tea or Coffee.

8. WAQ to display price of al products where product name

Starts with k or 2nd letter of the product name is p.

9.WAQ to all the product names except tea.

10.display all the records in the ascending order of

Product id.

11.display all the records in ascending order of

Product id and descending order of pname.

12. display all the dop where dop is not done on the

Same date.

13.Using in operator display records of Tea,Coffee and

colddrink.

14. display all product by increasing their price by 5 percent.

15.display all the product names along with their DOP

Where DOP is done before 11th Feb 2023.

You might also like