0% found this document useful (0 votes)
10 views6 pages

??? ????????? ?????????

Uploaded by

sethubathii.4.20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

??? ????????? ?????????

Uploaded by

sethubathii.4.20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

NIMRA AYAZ

𝐒𝐐𝐋 𝐈𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰
𝐐𝐮𝐞𝐬𝐭𝐢𝐨𝐧𝐬 𝐁𝐚𝐬𝐢𝐜,
𝐈𝐧𝐭𝐞𝐫𝐦𝐞𝐝𝐢𝐚𝐭𝐞, 𝐚𝐧𝐝
𝐀𝐝𝐯𝐚𝐧𝐜𝐞𝐝 𝐋𝐞𝐯𝐞𝐥𝐬
1.Basic Level:

How to find duplicates in a table?

How do you handle NULL values in SQL?

Difference between INNER and LEFT JOIN.

Difference between UNION and UNION ALL.

What is the purpose of the GROUP BY clause in SQL?·

What is a subquery, and when would you use one?

What is the difference between a view and a table?

How do you delete records from a table?

What is a foreign key, and how is it used?

How do you sort data in a query?


2.Intermediate Level:
·What are the different types of joins in SQL?

·How do you optimize SQL queries for better performance?

·Find records in a table that are not present in another table.

·Explain the ACID properties in the context of database

transactions.

·Explain the difference between primary key and foreign key

constraints.

·What is a common table expression (CTE), and how is it used?

·How do you use window functions in SQL?

·What are stored procedures, and how do they differ from

functions?

·Explain the concept of normalization and its benefits.

·What is a trigger, and how is it used in a database?

·Explain the concept of indexing and the types of indexes

available in SQL.
3. Advanced Level:
How do you implement full-text search in SQL databases?

What is database partitioning, and what are its benefits? Explain

the differences between OLTP and OLAP systems.

How can you use recursive queries in SQL?

What are materialized views, and how do they differ from

regular views?

How do you perform error handling in stored procedures?

You have a table with millions of records and a query that runs

very slowly. How would you diagnose and improve its

performance?

You need to generate a report that shows the total sales per

region for the last year, but the sales data is in a separate table

from the region data. How would you approach this?


How would you handle a situation where you need to update a

large number of records in a table but want to minimize locking

and performance issues?

You have a requirement to archive old data from a transaction

table to improve performance. How would you approach this,

and what considerations would you take into account?

You need to implement a complex reporting system that

requires data from multiple sources and transformations. How

would you design the SQL queries or procedures to achieve

this?
If you find this helpful
Like
Comment
Share

You might also like