SQL Interview Questions
Kanalga Telegram’da o‘tish
Channel for SQL learning: @sql_res Chennal for SQL syntax: @sql_syntax Chennal for SQL interview questions: @etl_sql_interview
Ko'proq ko'rsatishMamlakat belgilanmaganToif belgilanmagan
952
Obunachilar
+124 soatlar
+97 kunlar
+7730 kunlar
Ma'lumot yuklanmoqda...
O'xshash kanallar
Taglar buluti
Ma'lumot yo'q
Muammo bormi? Iltimos, sahifani yangilang yoki bizning qo'llab-quvvatlash boshqaruvchimizga murojaat qiling>.
Kirish va chiqish esdaliklari
---
---
---
---
---
---
Obunachilarni jalb qilish
Dekabr '24
Dekabr '24
+76
0 kanalda
Noyabr '24
+58
0 kanalda
Get PRO
Oktabr '24
+76
0 kanalda
Get PRO
Sentabr '24
+86
0 kanalda
Get PRO
Avgust '24
+365
0 kanalda
Get PRO
Iyul '240
0 kanalda
Get PRO
Iyun '240
0 kanalda
Get PRO
May '240
0 kanalda
Get PRO
Aprel '240
0 kanalda
Get PRO
Mart '24
+35
0 kanalda
Get PRO
Fevral '24
+634
0 kanalda
Get PRO
Yanvar '240
0 kanalda
Get PRO
Dekabr '230
0 kanalda
Get PRO
Noyabr '230
0 kanalda
Get PRO
Oktabr '230
0 kanalda
Get PRO
Sentabr '230
0 kanalda
Get PRO
Avgust '230
0 kanalda
Get PRO
Iyul '230
0 kanalda
Get PRO
Iyun '230
0 kanalda
Get PRO
May '230
0 kanalda
Get PRO
Aprel '230
0 kanalda
Get PRO
Mart '23
+107
0 kanalda
Get PRO
Fevral '23
+135
0 kanalda
Get PRO
Yanvar '23
+121
0 kanalda
Get PRO
Dekabr '22
+60
0 kanalda
Get PRO
Noyabr '22
+61
0 kanalda
Get PRO
Oktabr '22
+52
0 kanalda
Get PRO
Sentabr '22
+67
0 kanalda
Get PRO
Avgust '22
+139
0 kanalda
Get PRO
Iyul '22
+258
0 kanalda
| Sana | Obunachilarni jalb qilish | Esdaliklar | Kanallar | |
| 21 Dekabr | +5 | |||
| 20 Dekabr | +2 | |||
| 19 Dekabr | +4 | |||
| 18 Dekabr | +9 | |||
| 17 Dekabr | +9 | |||
| 16 Dekabr | +4 | |||
| 15 Dekabr | 0 | |||
| 14 Dekabr | +3 | |||
| 13 Dekabr | +1 | |||
| 12 Dekabr | +11 | |||
| 11 Dekabr | +1 | |||
| 10 Dekabr | +3 | |||
| 09 Dekabr | +2 | |||
| 08 Dekabr | +3 | |||
| 07 Dekabr | +5 | |||
| 06 Dekabr | +1 | |||
| 05 Dekabr | +4 | |||
| 04 Dekabr | +1 | |||
| 03 Dekabr | +3 | |||
| 02 Dekabr | +3 | |||
| 01 Dekabr | +2 |
Kanal postlari
Leetcode SQL
Bit faster explanation
https://youtube.com/playlist?list=PLdrw9_aIADIPAMJW8I_S-S747oyiRtzpS
Detailed Explanation
https://youtube.com/playlist?list=PLtfxzVLWb-B-O3VAjxsoZYgG6d8WMnPjG
| 2 | SQL interview queries - BIG 4
https://youtu.be/dWHSt0BVlv0 | 196 |
| 3 | Tricky SQL interview questions
https://youtu.be/aE623ff7zkM | 236 |
| 4 | Commonly asked questions - Difference between concepts which looks similar but they aren't ( eg: where vs having, Exists vs In.. etc )
Part 1 :
https://youtu.be/RZc4QSRRk98
Part 2 :
https://youtu.be/s1QkS4PfiFg | 518 |
| 5 | Top 10 SQL interview queries for experienced
https://youtu.be/zvuWEysWoLE | 252 |
| 6 | Top 25 SQL interview Questions and Answers
https://youtu.be/AK7_m-aThfw | 0 |
| 7 | SQL Interview Questions
Basic Level : https://intellipaat.com/blog/interview-question/sql-interview-questions/#11
Intermediate Level :
https://intellipaat.com/blog/interview-question/sql-interview-questions/#12
Advance Level :
https://intellipaat.com/blog/interview-question/sql-interview-questions/#13 | 0 |
| 8 | MySQL Commands: Full List With Examples
https://www.interviewbit.com/blog/mysql-commands/?amp=1 | 0 |
| 9 | Top 25 SQL interview Questions
https://youtu.be/AK7_m-aThfw | 697 |
| 10 | https://www.kdnuggets.com/2020/11/5-tricky-sql-queries-solved.html | 865 |
| 11 | To Refer three tables for writing queries👇
https://t.me/etl_sql_interview/8
To Refer questions for writing queries👇
https://t.me/etl_sql_interview/43
Answers :
41. SELECT DEPARTMENT, COUNT(DEPARTMENT) as 'Number of Workers' FROM Worker GROUP BY DEPARTMENT;
42. Select * from Worker where WORKER_ID = (SELECT max(WORKER_ID) from Worker);
43. Select * from Worker where WORKER_ID = (SELECT min(WORKER_ID) from Worker);
44. SELECT * FROM Worker WHERE WORKER_ID <=5
UNION
SELECT * FROM (SELECT * FROM Worker W order by W.WORKER_ID DESC) AS W1 WHERE W1.WORKER_ID <=5;
45. SELECT t.DEPARTMENT,t.FIRST_NAME,t.Salary from(SELECT max(Salary) as TotalSalary,DEPARTMENT from Worker group by DEPARTMENT) as TempNew
Inner Join Worker t on TempNew.DEPARTMENT=t.DEPARTMENT
and TempNew.TotalSalary=t.Salary; | 915 |
| 12 | Click below link to Refer three tables here for writing queries 👇
https://t.me/etl_sql_interview/8
Q-41. Write an SQL query to show all departments along with the number of people in there.
Q-42. Write an SQL query to show the last record from a table.
Q-43. Write an SQL query to fetch the first row of a table.
Q-44. Write an SQL query to fetch the last five records from a table.
Q-45. Write an SQL query to print the name of employees having the highest salary in each department. | 853 |
| 13 | To Refer three tables for writing queries👇
https://t.me/etl_sql_interview/8
To Refer questions for writing queries👇
https://t.me/etl_sql_interview/41
Answers :
36. Select max(Salary) from Worker
where Salary not in (Select max(Salary) from Worker);
37. select FIRST_NAME, DEPARTMENT from worker W where W.DEPARTMENT='HR'
union all
select FIRST_NAME, DEPARTMENT from Worker W1 where W1.DEPARTMENT='HR';
38. (SELECT * FROM Worker)
INTERSECT
(SELECT * FROM WorkerClone);
39.SELECT *
FROM WORKER
WHERE WORKER_ID <= (SELECT count(WORKER_ID)/2 from Worker);
40. SELECT DEPARTMENT, COUNT(WORKER_ID) as 'Number of Workers' FROM Worker GROUP BY DEPARTMENT HAVING COUNT(WORKER_ID) < 5; | 745 |
| 14 | Click below link to Refer three tables here for writing queries 👇
https://t.me/etl_sql_interview/8
Q-36. Write an SQL query to show the second highest salary from a table.
Q-37. Write an SQL query to show one row twice in results from a table.
Q-38. Write an SQL query to fetch intersecting records of two tables.
Q-39. Write an SQL query to fetch the first 50% records from a table.
Q-40. Write an SQL query to fetch the departments that have less than five people in it. | 609 |
| 15 | Most commonly asked SQL interview questions
https://youtu.be/L-URbfgxBMQ | 592 |
| 16 | To Refer three tables for writing queries👇
https://t.me/etl_sql_interview/8
To Refer questions for writing queries👇
https://t.me/etl_sql_interview/37
Answers :
31. SELECT SYSDATE FROM DUAL;
32. SELECT * FROM (SELECT * FROM Worker ORDER BY Salary DESC)
WHERE ROWNUM <= 10;
33. SELECT Salary FROM Worker ORDER BY Salary DESC LIMIT n-1,1;
34. SELECT Salary
FROM Worker W1
WHERE 4 = (
SELECT COUNT( DISTINCT ( W2.Salary ) )
FROM Worker W2
WHERE W2.Salary >= W1.Salary
);
35. Select distinct W.WORKER_ID, W.FIRST_NAME, W.Salary
from Worker W, Worker W1
where W.Salary = W1.Salary
and W.WORKER_ID != W1.WORKER_ID; | 620 |
| 17 | Click below link to Refer three tables here for writing queries 👇
https://t.me/etl_sql_interview/8
Q-31. Write an SQL query to show the current date and time.
Q-32. Write an SQL query to show the top n (say 10) records of a table.
Q-33. Write an SQL query to determine the nth (say n=5) highest salary from a table.
Q-34. Write an SQL query to determine the 5th highest salary without using TOP or limit method.
Q-35. Write an SQL query to fetch the list of employees with the same salary. | 564 |
| 18 | covers many interesting interview questions checkout This playlist 👇
https://youtube.com/playlist?list=PLdrw9_aIADIPAMJW8I_S-S747oyiRtzpS
Tip: Try to do just one per day
( If possible two/day on weekends ) | 528 |
| 19 | Click below links
To Refer three tables for writing queries👇
https://t.me/etl_sql_interview/8
To Refer questions for writing queries👇
https://t.me/etl_sql_interview/34
Answers:
26. SELECT * FROM Worker WHERE MOD (WORKER_ID, 2) <> 0;
27. SELECT * FROM Worker WHERE MOD (WORKER_ID, 2) = 0;
28. SELECT * INTO WorkerClone FROM Worker;
29. (SELECT * FROM Worker)
INTERSECT
(SELECT * FROM WorkerClone);
30. SELECT * FROM Worker
MINUS
SELECT * FROM Title; | 554 |
| 20 | Click below link to Refer three tables here for writing queries👇
https://t.me/etl_sql_interview/8
Q-26. Write an SQL query to show only odd rows from a table.
Q-27. Write an SQL query to show only even rows from a table.
Q-28. Write an SQL query to clone a new table from another table.
Q-29. Write an SQL query to fetch intersecting records of two tables.
Q-30. Write an SQL query to show records from one table that another table does not have. | 526 |
