0% found this document useful (0 votes)
2 views

SQL_Questions_Class11

The document contains a series of SQL questions designed for Class 11 Information Practices, including tasks such as creating tables for Employee and Products, inserting records, querying data, and performing updates and deletions. It covers various SQL operations such as selecting specific columns, filtering records based on conditions, and modifying existing data. The questions aim to enhance students' understanding of SQL syntax and database management concepts.

Uploaded by

rs0504434
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

SQL_Questions_Class11

The document contains a series of SQL questions designed for Class 11 Information Practices, including tasks such as creating tables for Employee and Products, inserting records, querying data, and performing updates and deletions. It covers various SQL operations such as selecting specific columns, filtering records based on conditions, and modifying existing data. The questions aim to enhance students' understanding of SQL syntax and database management concepts.

Uploaded by

rs0504434
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL Questions for Class 11 Information Practices

1. Write an SQL query to create a table named Employee with the following columns:

- Emp_ID (Integer, Primary Key)

- Name (VARCHAR, length 50)

- Designation (VARCHAR, length 30)

- Salary (Decimal, 8,2).

2. Write an SQL query to create a table Products with these fields:

- Product_ID (Integer, Primary Key)

- Product_Name (VARCHAR, length 50)

- Category (VARCHAR, length 30)

- Price (Decimal, 6,2).

3. Insert the following records into the Employee table:

| Emp_ID | Name | Designation | Salary |

|--------|----------|-------------|---------|

| 101 | Ramesh | Manager | 50000.00 |

| 102 | Sita | Engineer | 40000.00 |

| 103 | Priya | Clerk | 25000.00 |

4. Insert a record into the Products table with the values:

Product_ID = 1, Product_Name = 'Laptop', Category = 'Electronics', Price = 45000.00.

5. Write an SQL query to display all records from the Employee table.

6. Write an SQL query to display only the Name and Salary columns from the Employee table.

7. Retrieve all employees from the Employee table whose Salary is greater than 30,000.
8. Write an SQL query to fetch all products from the Products table where the Category is

'Electronics'.

9. Write an SQL query to display all records from the Employee table in descending order of Salary.

10. Display all records from the Products table sorted by Product_Name in ascending order.

11. Write an SQL query to find the average Salary of employees in the Employee table.

12. Calculate the total number of products in the Products table using an SQL query.

13. Write an SQL query to group employees by Designation and find the average Salary for each

designation.

14. Modify the above query to display only those designations where the average Salary is greater

than 35,000.

15. Write an SQL query to increase the Salary of all employees in the Employee table by 10%.

16. Update the Price of all products in the Products table where Category is 'Electronics', increasing

the price by 5%.

17. Write an SQL query to delete all employees from the Employee table where the Salary is less

than 30,000.

18. Delete the record from the Products table where the Product_ID is 1.

19. Write an SQL query to add a new column Email (VARCHAR, length 50) to the Employee table.

20. Write an SQL query to drop the Category column from the Products table.

You might also like