imp sql
imp sql
Define DBMS.
Define DBMS.
Explain relational operators in SQL and how they are used in querying databases.
Explain the concept of nested queries and provide detailed examples of their application.
Describe the process of designing a database for a data warehouse, providing detailed steps.
Describe the different types of window functions available in SQL and provide examples.
Discuss how to optimize SELECT and WHERE clauses in SQL with practical examples.
Define Normalization
Explain Triggers
Explain Cursor
Explain joins
Describe the three-schema architecture and explain the concept of data independence.
Explain the difference between data models and instances with examples.
Define strong and weak entities and explain their differences with examples.
How are primary keys and foreign keys used to maintain entity constraints and referential
integrity?
What are semantic constraints, and how are they applied in ER diagrams?
What are the differences between DDL, DML, DCL, and TCL? Provide examples of each.
Describe the syntax of a basic SQL query for selecting data from a table.
How do aggregate functions like SUM, AVG, and COUNT work in SQL? Provide examples.
Explain the use of constraints (e.g., NOT NULL, UNIQUE) in SQL with examples.
What are the SQL commands for inserting, updating, deleting, and selecting data?
Explain the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN, and CROSS JOIN with
examples.
How are UNION, UNION ALL, INTERSECT, and MINUS operations used in SQL?
What are string functions like CONCAT, SUBSTRING, and LENGTH used for in SQL?
How can regular expressions be used for pattern matching in SQL queries?
Explain how window functions (e.g., RANK, LEAD, LAG) work with examples.
What are the principles of normalization, and why are they important in relational schema
design?
How does dimensional modeling differ from ER modeling? Provide use cases for each.
Design a basic schema for an IMDb-like database, including tables for movies, actors, and
reviews. What constraints and relationships would you use?