0% found this document useful (0 votes)
10 views6 pages

SQL Worksheet

The document is a worksheet for a Database Management System course at The Hindu Senior Secondary School, Triplicane. It includes various SQL queries related to item pricing, trader information, teacher details, employee salaries, and string manipulation. The tasks involve displaying, deleting, and modifying data based on specified conditions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

SQL Worksheet

The document is a worksheet for a Database Management System course at The Hindu Senior Secondary School, Triplicane. It includes various SQL queries related to item pricing, trader information, teacher details, employee salaries, and string manipulation. The tasks involve displaying, deleting, and modifying data based on specified conditions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

The Hindu Senior secondary school, Triplicane

DATABASE MANAGEMENT SYSTEM

WORKSHEET
1

a. Display the details of item which price within range of 15000 and 20000
b. Display the number of item of each company
c. Display the details of item in the ascending order of thie price
d. Delete the details of item which price ic grater than 25000

To display the number of items, which are traded by each trader. The expected output of this
query should be:
b. To display the price, item name and quantity (i.e., qty) of those items which have quantity
more than 150.
c. To display the names of those traders, who are either from DELHI or from MUMBAI.
d. To display the names of the companies and the names of the items in descending order of
company names

1
3

2
5

degree?

3
6.

[Link] the name of the teachers who celebrate birthday in the month of November
b. Display the details of the teacher who have maximum number of periods?
c. Display department name and average salary of teachers in each department which have
more than 3000 average salary
d. Remove the details of teacher who get lowest salary?
e. Increase the salary of the teachers who handling more than 33 periods?

4
8

(a) To display the average salary of all employees, department wise.


(b) To display name and respective department name of each employee whose salary is more
than 50000.
(c) To display the names of employees whose salary is not known, in alphabetical order.
(d) To display DEPTID from the table EMPLOYEE without repetition

9.

5
10. Write SQL statements for the following: [IP STUDENTS ONLY]
i) Display the length of the string "Informatics Practices".
II) Display the position of "My" in "Enjoying MySQL".
ii) Display the name of current month.
iii) iv) Display system date. v) Display date after 10 days of current date.
iv) Display the day of current date
v) Display first three characters extracted from 5th right character onwards from
string “VALLABH ASHRAMS”
vi) Convert and display string ‘large’ into uppercase.
vii) Write a query to remove leading spaces of string ‘ RDBMS MySQL’.
viii) Display the position of string ‘LE ‘ in field job of table Empl

You might also like