DBMS assignment1
DBMS assignment1
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.
`