Here’s a worksheet focused on the SELECT commands in MySQL, suitable for Class XII students. This worksheet includes a variety of question types to help reinforce understanding.
MySQL Worksheet 5 : SELECT Commands
Name: ___________________
Date: ___________________
Part A: Multiple Choice Questions
- Which of the following commands is used to retrieve data from a database? - a) INSERT
- b) SELECT
- c) UPDATE
- d) DELETE
 
- To select all columns from a table named "Employees", which command would you use? - a) SELECT * FROM Employees;
- b) SELECT ALL FROM Employees;
- c) GET * FROM Employees;
- d) SELECT Employees.*;
 
- Which clause is used to filter records in a SELECT statement? - a) ORDER BY
- b) GROUP BY
- c) WHERE
- d) HAVING
 
Part B: True/False Questions
- T/F: The SELECT statement can be used to retrieve data from multiple tables at once. 
- T/F: The DISTINCT keyword is used to eliminate duplicate rows in the result set. 
- T/F: You can use the SELECT command to modify data in a table. 
Part C: Fill in the Blanks
- The SQL command to select only the "Name" and "Age" columns from the "Students" table is __________. 
- To sort the results of a query in descending order, you would use the __________ keyword. 
- The __________ clause is used to group rows that have the same values in specified columns. 
Part D: Short Answer Questions
- Write the SQL command to retrieve all records from the "Products" table. 
- Write the SQL command to count the number of rows in the "Orders" table. 
- Explain the purpose of the WHERE clause in a SELECT statement. 
Part E: Practical Application
- Write a command to select the "Email" column from the "Customers" table where the "City" is "New York". 
- Write a command to retrieve all unique job titles from the "Employees" table. 
- If you want to retrieve records from the "Sales" table, sorting them by "SaleDate" in ascending order, what command would you use? 
.png)

.png)
 

 
 
 
 
.png) 
 
![[Get Rs.100 Free] Offer For Online Poker Player](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzXLcF-w-HtHQE6E2dS1wVn1txZ27o_qu8YgBMAu70IeovgwJ4GBuOIltWxwf495mQtBdC0u6oYfirIWqNoXx6x4fEE8neGZmGM5wxfcxkPuh5HaoqtK-Npg_4mD7epC4BuLx9jpd24Yo/w72-h72-p-k-no-nu/poker.png) 
![[100 % working] Just Give A miss call and win Talktime](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl-4CaKjkyp8P7Buew47GZDOXZC_lJuMIF4s5w9sCieZbOdC0Aytf0m32vFp_iWIZ96nftYkPF-OAbrvaDAeMVbWbkjnnxjOwACAXYGB2HnV9YnTxUnXv96mkvhTAK9b3owgAqj2ieFlhU/w72-h72-p-k-no-nu/wheel-free.jpg) 
![[DATAFRAME ] Class XII access rows and columns using different methods](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvkvbjaJszFdO7lTRSlbccJkxyx-n0_KM97rhYHNEcVoezQZdPf-dnzTlWXNU0U4J0c5WmMv308WKGt5Fr6pMggk5R0TgaCB8ZTY05oZm1YaQNnZ8o8zEB4viV9StYL-_tqah8RksTBiOrPj2RrGaQgMD5wVWZtOlxiXPlGeDhzVPuFtgmNRpLhpAprSo/w72-h72-p-k-no-nu/Professional%20LinkedIn%20Banner%20(1).png) 
.png) 
 
![[loot offer ] Ambrane 10000 Power Bank at Rs 299 only](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSMWWKl7yDLLwW7qnTng-eTC9ZBEn0E1PbxqkFWpY_fqiNt3hZHRcNa9tIKdtgZ_AfOreCTglryboUlJ3EM4lnU9d6B1QIEPyo04Gt0p0kONs5F_dBizVsKsYIks1rmS9Zo55FWmHuiQtsdkKgEWPQ36FD8Twj9MnpY7zyxq3FIzwM67kn24G-hCtT/w72-h72-p-k-no-nu/power.png) 
.png) 
 
![[Loot Offer]Sandisk Cruzer Blade 16 GB Pendrive @ Rs 79 only](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3gEAiqlZckmgvmXrYOiGF8oVOLt9wlu4B6IWWEd7SARfF4rSdyQ56bl4aIV3UXrEiTjKdWD-kaofdfoMBn_yHHrR8uqC0LVpmgV-nLPYtVtwrKEPwVnYU05h_gnTnz3PcVGioULXyjQBd/w72-h72-p-k-no-nu/ebay.jpg) 
 
.png) 
 
0 Comments
Please do note create link post in comment section