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

DBMS_ASSIGNMENT 1

The document outlines an assignment focused on Database Management Systems (DBMS) covering various topics such as metadata, data models, data independence, and database interfaces. It includes questions that require definitions, explanations, and SQL query examples for different scenarios involving employee data and departmental relationships. The assignment emphasizes practical SQL skills through tasks like querying employee details based on specific conditions and using subqueries.

Uploaded by

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

DBMS_ASSIGNMENT 1

The document outlines an assignment focused on Database Management Systems (DBMS) covering various topics such as metadata, data models, data independence, and database interfaces. It includes questions that require definitions, explanations, and SQL query examples for different scenarios involving employee data and departmental relationships. The assignment emphasizes practical SQL skills through tasks like querying employee details based on specific conditions and using subqueries.

Uploaded by

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

ASSIGNMENT 1

DBMS

Q1. Define Metadata in Database Management Systems and their types.


Q2. Describe about Data Models in DBMS broadly.
Q3. Describe Data Independence and Database Interfaces.
Q4. Differentiate between Nested Subquery and Correlated Subquery with proper example.
Also write the SQL Queries for each example that you have considered.
Q5. Explain with examples the use of EXISTS, NOT EXISTS, ALL, ANY, BETWEEN and LIKE SQL
Commands.
Q6. Consider the following Employee Table and write the SQL Queries:

E_id E_name
1 Varun
2 Arun
3 Karuna
4 Amrit
5 Ranjeet
6 Ajeet

1. Find Employee detail whose name starting with ‘A’.


2. Finding Employee detail whose name ending with ‘n’.
3. Finding Employee detail whose name contains ‘ee’.
4. Finding Employee detail whose name contain ‘a’ in second place.
5. Finding Employee detail whose name contain ‘a’ in second place and name should
contain total five characters.
Q7. Consider the following Employee Table and write the SQL Queries:

E_id E_name Dept Salary


1 Ram HR 1000
2 Amrit MRKT 2000
3 Ravi HR 3000
4 Nitin MRKT 4000
5 Varun IT 5000

1. Find the details of Employee whose salary ranges between 1000 and 3500.
2. Find the details of Employee whose name lies between ‘Varun’ and ‘Nitin’ order by
name alphabetically.
3. Display the highest salary and name of Employee who is taking that salary.
4. Display the second highest salary and name of Employee who are taking that salary.
5. Display the highest salary Department wise and name of Employee who are taking
that salary.
6. Find the details of Employee who are taking 3rd highest salary using correlated
nested subquery.

Q8. Consider the Following Employee and Department Table and wite the SQL Queries:

E_id E_name Address D_id D_name E_id


1 Arun Delhi 1 HR 1
2 Ajeem Pune 2 IT 2
3 Katrin Chandigarh 3 MRKT 3
4 Manoj Delhi 4 ML 4
5 Bhupen Pune
6 Tom Mumbai
7 Jerry Hyderabad

1. Find the details of all Employee who works in any Department. Write SQL Queries
using Nested Subquery and Correlated Subquery.
2. Find the details of all Employee who do not works in any Department. Write SQL
Queries using Nested Subquery and Correlated Subquery.

You might also like