By Arzoo Yadav Published: 13 March, 2025 Image: Pixabay

Top 5 SQL Interview Questions for Freshers Asked in Interview

Mastering SQL is essential for cracking technical interviews and securing high-paying jobs in the IT industry.

Image: Pixabay

SQL is a programming language used to manage and manipulate databases. It is used for querying, updating, and managing data in relational databases.

Image: Pixabay

Let's dive into the 5 most common SQL interview questions.

Image: Pixabay

DML: Retrieves, inserts, updates, and deletes data in a database.
DDL: Creates and modifies database objects like tables, views, and indexes.
TCL: Manages transactions within a database.

Different Types of SQL Statements

Image: Pixabay

A primary key is a unique identifier for each record in a table. It ensures that each record can be uniquely identified.

Difference Between Primary Key and Foreign Key

Image: Pixabay

Normalization is the process of organizing a database to reduce redundancy and improve data integrity.

What is Normalisation?

Image: Pixabay

WHERE: Filters records before aggregation.
HAVING: Filters records after aggregation (used with GROUP BY)

Difference Between WHERE and HAVING

Image: Pixabay

A subquery is a query nested within another query. It can be used in SELECT, INSERT, UPDATE, or DELETE statements to retrieve a value or set of values for use in the main query.

What is a subquery?

Image: Pixabay

TCS
Infosys
Wipro
Accenture
Amazon

Top Recruiters

Image: Pixabay
Know More