No products in the cart.

Consider the Table ‘‘Infant’’ shown below …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Consider the Table ‘‘Infant’’ shown below : Table : Infant temCode Item DatePurchase UnitPrice Discount 101 Frock 2016-01-23 700 10 102 Cot 2015-09-23 5000 25 103 Soft Toy 2016-06-17 800 10 104 Baby Socks 2014-10-16 100 7 105 Baby Suit 2015-09-20 500 5 Note : Discount column stores discount %. Write the commands in SQL for (i) to (viii) and output for (ix) and (x). (i) To display the details about the Cot. (1) (ii) To list the names of items and their unit price that have unit price less than 800 and discount more than 5%. (1) (iii) To list the names of items and their date of purchase that were purchased after 31st December, 2015. (1) (iv) To display the number of items that have more than 10% as discount. (1) (v) To display item code and unit price in decreasing order of unit price. 190 8 (vi) To increase the unit price of each item by 10% of their unit price. (1) (vii) To display the highest unit price of items. (1) (viii) To display the names of items that have ‘Baby’ anywhere in their item names. (1) (ix) SELECT MID (Item,1,2) FROM Infant; 1 (x) SELECT AVG(UnitPrice) FROM Infant WHERE DATEPURCHASE >‘2015–01–01’; (1)
  • 0 answers
http://mycbseguide.com/examin8/

Related Questions

Founder of python
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App