Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+2 votes
7.0k views
in Information Technology by (34.4k points)
closed by

Write the SQL commands to answer the queries based on Fabric table

Fabric ID Fname Type Disc
F001 Shirt Woollen 10
F002 Suit Cotton 20
F003 Tunic Cotton 10
F004 Jeans Denim 5
F005 Shorts Cotton 7

a. To insert the following record 

(“F005”, “Kurta”, “Woollen”,5) 

b. To display only those fabric whose disc is more than 10 

c. To display those records whose type is “Woollen” 

d. To modify the fabric shirt by increasing discount by 10 

e. To delete the record of fabric ‘F003’ from table

1 Answer

+2 votes
by (33.7k points)
selected by
 
Best answer
Fabric ID Fname Type Disc
F001 Shirt Woollen 10
F002 Suit Cotton 20
F003 Tunic Cotton 10
F004 Jeans Denim 5
F005 Shorts Cotton 7

a. insert into Fabric values (‘F005’, ‘Kurta’, ‘Woollen’,5);

b. select * from Fabric where Disc>10;

c. select * from Fabric where type = ‘Woollen’;

d. update fabric 

set Disc = Disc + 10 

where name = ‘Shirt’;

e. delete from Fabric where FabricID =‘F003’;

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...