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

imp sql

The document covers various SQL concepts, including commands like DROP TABLE and TRUNCATE TABLE, as well as keywords such as DISTINCT and functions like RANK and DENSE_RANK. It discusses database design principles, normalization, and the differences between OLAP and OLTP systems. Additionally, it explains the importance of entities, relationships, and constraints in relational database management systems (RDBMS).
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

imp sql

The document covers various SQL concepts, including commands like DROP TABLE and TRUNCATE TABLE, as well as keywords such as DISTINCT and functions like RANK and DENSE_RANK. It discusses database design principles, normalization, and the differences between OLAP and OLTP systems. Additionally, it explains the importance of entities, relationships, and constraints in relational database management systems (RDBMS).
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

How do you drop a table in SQL?

What is the `TRUNCATE TABLE` command used for?

Define DBMS.

How do you drop a table in SQL?

What does the DISTINCT keyword do?

What is a delimiter in the context of data files?

How do OLAP and OLTP differ?

Contrast the difference between logical and physical schema.

Define ‘window frame’ in SQL.

What is the purpose of the DISTINCT keyword in SQL optimization?

What is the `TRUNCATE TABLE` command used for?

Define DBMS.

What is the difference between `RANK()` and `DENSE_RANK()`?

What is the purpose of the PIVOT operation in SQL optimization?

What does the term ‘entity’ refer to in RDBMS?

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.

What is the difference between `RANK()` and `DENSE_RANK()`?

What is the purpose of the PIVOT operation in SQL optimization?

What does the term ‘entity’ refer to in RDBMS?

Define Normalization

Explain Store procedure

Explain Triggers

Explain Cursor

Explain joins

Explain Sub Query’s


What are the advantages of using the DBMS approach over traditional file systems?

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.

What are attributes and relationships in a database? Provide examples.

How are primary keys and foreign keys used to maintain entity constraints and referential
integrity?

What is an ER diagram, and why is it important in database design?

Explain specialization and generalization in the context of ER diagrams.

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.

How do you create, alter, and drop tables in SQL?

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 is a nested query, and how is it different from a regular query?

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.

What is indexing in SQL, and how does it improve query performance?

Design a basic schema for an IMDb-like database, including tables for movies, actors, and
reviews. What constraints and relationships would you use?

You might also like