Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

DBMS ASSIGNMENT QUESTIONS, Assignments of Database Management Systems (DBMS)

QUESTIONS ON DBMS EXERCISES IMPORTANT QUESTIONS

Typology: Assignments

2023/2024

Uploaded on 10/18/2024

pooja-singh-27
pooja-singh-27 🇮🇳

2 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1.Make a Powerpoint presentation on India and the G20: Prioritizing education technology
for global growth
2.Table “Emp” is shown below. Write commands in SQL for (i) to (iii) and output for (iv)
and (v)
i. To display list of all employees
below 25 years old.
ii. To list names and respective
salaries in descending order of
salary.
iii. To list names and addresses of
those persons who have ‘Delhi’ in
their address.
iv. SELECT Name, Salary FROM
Emp where salary between 50000 and 70000;
v. SELECT Name, phone from emp where phone like ‘99%’;
3. Mrs. Sen entered the following SQL statement to display all Salespersons of the cities
“Chennai” and ‘Mumbai’ from the table ‘Sales’.
Sc
od
e N
am
e
C
i
t
y
101 Aakriti Mumb
a
i
102 Aman Chenn
a
103 Banit Delhi
104 Fauzia Mumb
a
SELECT * FROM
Sales WHERE
City=‘Chennai’ AND
City=‘Mumbai’;
Rewrite the correct statement, if wrong or write statement is correct.
4. Which clause would you use with Select to achieve the following:
i. To select the values that match with any value in a list of specified values.
ii. Used to display unrepeated values of a column from a table.
5. Consider the following table:
pf3

Partial preview of the text

Download DBMS ASSIGNMENT QUESTIONS and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

1.Make a Powerpoint presentation on India and the G20: Prioritizing education technology for global growth

2. Table “Emp” is shown below. Write commands in SQL for (i) to (iii) and output for (iv) and (v) i. To display list of all employees below 25 years old. ii. To list names and respective salaries in descending order of salary. iii. To list names and addresses of those persons who have ‘Delhi’ in their address. iv. SELECT Name, Salary FROM Emp where salary between 50000 and 70000; v. SELECT Name, phone from emp where phone like ‘99%’;

  1. Mrs. Sen entered the following SQL statement to display all Salespersons of the cities “Chennai” and ‘Mumbai’ from the table ‘Sales’. Scode Name City 101 Aakriti Mumba 102 Aman iChenna 103 Banit Delhi 104 Fauzia Mumba SELECT * FROM Sales WHERE City=‘Chennai’ AND City=‘Mumbai’; Rewrite the correct statement, if wrong or write statement is correct.

4. Which clause would you use with Select to achieve the following:

i. To select the values that match with any value in a list of specified values.

ii. Used to display unrepeated values of a column from a table.

  1. Consider the following table:

Write commands in SQL for (i) to (iv) i. To display the details of all those students who have IP as their optional subject. ii. To display name, stream and optional of all those students whose name starts with ‘A’.

iii. To give an increase of 3 in the average of all those students of humanities section

who have Maths as their optional subject.

iv. To display a name list of all those students who have average more than 75.

  1. Write the output of the following SQL queries: a) SELECT ROUND(6.5675, 2); b) SELECT TRUNCATE(5.3456, 1); c) SELECT DAYOFMONTH('2009-08-25'); d) SELECT MID('Class 12', 2,3);
  2. Write the output of the following SQL queries: i. SELECT INSTR(‘INTERNATIONAL’, ‘NA’); ii. SELECT LENGTH(CONCAT(‘NETWORK’,’ING’)); iii.SELECT ROUND(563.345,-2); iv. SELECT DAYOFYEAR(‘2014-01-30’);
  3. Consider the table TEACHER given below. Write commands in SQL for (1) and output for (2) to (5) i. To count the number of teachers in English department. ii. SELECT MAX(Hiredate) FROM Teacher; iii. SELECT DISTINCT(category) FROM teacher; iv. SELECT COUNT(*) FROM TEACHER WHERE Category = "PGT" v. SELECT Gender,AVG(Salary) FROM TEACHER group by Gender;
  4. Consider the tables HANDSETS and CUSTOMER given below: