SQL Interview Part 2
SQL Interview Part 2
Top 30
Part - 2
Anil Patel Architect - Data
Engineering & Analytics
@anilpatel Career Transition Coach
Introduction
SQL (Structured Query Language) is a programming language used for managing and
manipulating relational databases. It allows users to interact with databases by performing
tasks like querying data, inserting records, updating information, and deleting entries,
making it essential for handling data effectively in various applications.
Table : Employees
1. Brayden IT 52000
2. Chris HR 54000
5. Lara IT 46000
7. Marshall HR 42000
SELECT *
FROM Employees
WHERE Name LIKE ' A% ' ;
SELECT *
FROM Employees
WHERE Salary > 60000 ;
SELECT *
FROM Employees
WHERE Department IN ( ' IT ' , ' Marketing ' ) ;
Anil Patel Architect - Data
Engineering & Analytics
@anilpatel Career Transition Coach
SELECT *
FROM Employees
WHERE Salary BETWEEN 45000 AND 55000 ;