CBSE Class 12 Informatics Practices
Question 39 of 44
Solved 2025 Sample Question Paper CBSE Class 12 Informatics Practices (065) — Question 2
Back to all questions 2
Question Rahul, who works as a database designer, has developed a database for a bookshop. This database includes a table BOOK whose column (attribute) names are mentioned below:
BCODE: Shows the unique code for each book.
TITLE: Indicates the book’s title.
AUTHOR: Specifies the author’s name.
PRICE: Lists the cost of the book.
Table: BOOK
| BCODE | TITLE | AUTHOR | PRICE |
|---|---|---|---|
| B001 | MIDNIGHT'S CHILDREN | SALMAN RUSHDIE | 500 |
| B002 | THE GOD OF SMALL THINGS | ARUNDHATI ROY | 450 |
| B003 | A SUITABLE BOY | VIKRAM SETH | 600 |
| B004 | THE WHITE TIGER | ARAVIND ADIGA | 399 |
| B005 | TRAIN TO PAKISTAN | KHUSHWANT SINGH | 350 |
I. Write SQL query to display book titles in lowercase.
II. Write SQL query to display the highest price among the books.
III. Write SQL query to display the number of characters in each book title.
IV. Write SQL query to display the Book Code and Price sorted by Price in descending order.
I.
SELECT LOWER(TITLE)
FROM BOOK; II.
SELECT MAX(PRICE)
FROM BOOK; III.
SELECT LENGTH(TITLE)
FROM BOOK; IV.
SELECT BCODE, PRICE
FROM BOOK
ORDER BY PRICE DESC;