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

DBMS assignment1

The document outlines key concepts in database management systems (DBMS), including the characteristics of databases versus file systems, data abstraction levels, and the definitions of entities and attributes in an ER model. It also explains keys in an ER model, the relational schema, and the mapping process from ER to relational models. Additionally, it provides SQL queries for creating and querying an Employee table, including operations for salary calculations and department grouping.

Uploaded by

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

DBMS assignment1

The document outlines key concepts in database management systems (DBMS), including the characteristics of databases versus file systems, data abstraction levels, and the definitions of entities and attributes in an ER model. It also explains keys in an ER model, the relational schema, and the mapping process from ER to relational models. Additionally, it provides SQL queries for creating and querying an Employee table, including operations for salary calculations and department grouping.

Uploaded by

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

1.

What are the characteristics of a database, and how is it different from a file
system?
2. Explain data abstraction and its levels in DBMS.
3. What is an entity? Differentiate between weak entity sets and strong entity sets
with examples.
4. Explain different types of attributes in an ER model.
5. Define keys in an ER model. Explain primary key, candidate key, and foreign key
with examples.
6. What is a relational schema, and how does it define the structure of a database?

7. Explain the process of mapping the ER and EER model to the relational model.
8. Write queries!
Write an SQL query to create a table named Employee with attributes: EmpID (Primary
Key), Name, Department, and Salary.
Write an SQL query to fetch the names of employees whose salary is greater than
50,000.
Write an SQL query to find the total number of employees in the Employee table.
Write an SQL query to calculate the average salary of employees in the company.
Write an SQL query to find the highest and lowest salary in the company.
Write an SQL query to find the total salary expense for all employees.
Write an SQL query to find the number of employees in each department (Grouped by
Department).
Write an SQL query to find the average salary per department and display only those
departments where the average salary is greater than 50,000 using HAVING.
`

You might also like