0% found this document useful (0 votes)
4 views1 page

SQL Queries for Fabric Management

The document contains SQL queries for various operations on a Fabric table. It includes an insert query for adding a record, select queries for filtering based on discount and type, an update query for modifying a discount, and a delete query for removing a specific record. Each query is clearly stated with its corresponding SQL command.

Uploaded by

sejalchauhan1414
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

SQL Queries for Fabric Management

The document contains SQL queries for various operations on a Fabric table. It includes an insert query for adding a record, select queries for filtering based on discount and type, an update query for modifying a discount, and a delete query for removing a specific record. Each query is clearly stated with its corresponding SQL command.

Uploaded by

sejalchauhan1414
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

a.

Write a query for insert the following record


(“F005”, “Kurta”, “Woollen”,5)
Answer – insert into Fabric values (‘F005’, ‘Kurta’, ‘Woolen’,5);
b. Write a query to display only those fabric whose disc is more than 10
Answer – select * from Fabric where Disc>10;
c. To display those record whose type is ‘Woolen’
Answer – select * from Fabric where type = ‘Woolen’;
d. To modify the fabric shirt by increasing discount by 10
Answer – update fabric set Disc = Disc + 10 where Fname = ‘Shirt’;
e. To delete the record of fabric F003 from table
Answer – delete from Fabric where FabricID =‘F003’;

You might also like