CBSE Arts (English Medium) Class 12 Important Questions for Informatics Practices - Querying and SQL Functions
Advertisements
Advertisements
Chapter wise important questions with answers and solutions for Informatics Practices in CBSE Arts (English Medium) Class 12.
Explain the following SQL function using a suitable example.
POWER()
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL
Shreya, a database administrator has designed a database for a clothing shop. Help her by writing answers to the following questions based on the given table:
| TABLE: CLOTH | |||||
| CCODE | CNAME | SIZE | COLOR | PRICE | DOP |
| C001 | JEANS | XL | BLUE | 990 | 2022-01-21 |
| C002 | T-SHIRT | M | RED | 599 | 2021-12-12 |
| C003 | TROUSER | M | GREY | 399 | 2021-11-10 |
| C004 | SAREE | FREE | GREEN | 1299 | 2019-11-12 |
| C005 | KURTI | L | WHITE | 399 | 2021-12-07 |
- Write a query to display cloth names in lowercase.
- Write a query to display the lowest price of the clothes.
- Write a query to count the total number of clothes purchased in medium size.
OR
Write a query to count the year-wise total number of clothes purchased.
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL
