Тёмный

100% you will be asked this question in interview ! | SQL Interview question 

Ashutosh Kumar
Подписаться 19 тыс.
Просмотров 6 тыс.
50% 1

Sql one of the most important language asked in most of the analytics interviews, in this video i am discussing about a very important concept in sql which is number of rows which will be produced in the output in case of various joins present in sql which is inner,left,right,full outer join in sql, this can be considered by far the most asked interview question in sql making it the most important question and concept. So do watch the video till the very end.
👉 Query -
drop table if exists table1;
CREATE TABLE table1(id integer);
INSERT INTO table1(id)
VALUES(1),
(1),
(2),
(3),
(4),
(3),
(null),
(null);
drop table if exists table2;
CREATE TABLE table2(id integer);
INSERT INTO table2(id)
VALUES(1),
(2),
(3),
(2),
(null);
select * from table1;
select * from table2;
👉 Complete playlist on Sql Interview questions and answers
• HackerRank SQL problem...
---------------------------------------------------------------------------------------------------------------------
Check out some more relevant content here
👉 How to Learn SQL
• How to learn sql for b...
👉 How to become a business analyst complete roadmap-
• Business Analyst Compl...
👉 How to become a data analyst complete roadmap-
• Data Analyst Complete ...
👉 Top 3 you tube channels to learn sql for free for beginners
• Video
👉 Rank ,Dense Rank, Row Number in sql -
• RANK - DENSE RANK - RO...
👉 Cross join in sql
• CROSS JOIN SQL
👉 union join in sql
• UNION IN SQL
👉 left join in sql
• LEFT JOIN IN SQL
👉 Right join in sql
• RIGHT JOIN IN SQL
👉 Inner join in sql
• INNER JOIN IN SQL
👉 Introduction to tables and databases in sql -
• INTRO TO TABLES AND DA...
👉 Aggregate Function in sql
• AGGREGATE FUNCTION IN SQL
👉 Functions in sql-
• IMPORTANT FUNCTIONS IN...
👉 String Function in sql
• STRING FUNCTIONS IN SQL
👉 CRUD operations in sql
• CREATE- READ- UPDATE-D...
👉 Autoincrement in sql
• Auto Increment in SQL ...
👉 Primary Key in sql-
• PRIMARY KEYS IN SQL - SQL
👉 Null and Default values in sql-
• NULL AND DEFAULT VALUE...
👉 Data types in sql-
• Data types in Sql - SQL
____________________________________________________________________
Fill the form below to subscribe yourself to the analytics jobs mailing list to receive regular job opening updates - docs.google.com/forms/d/e/1FA...
Why you should definitely fill the analytics job updates google form - • Job Openings into busi...
_______________________________________________________________________
Connect with me
📸Instagram - / ashutosh.analytics
💻Linkedin- / ashutoszh
_____________________________________________________________________
Comment down if you have any doubts
Please leave a LIKE 👍 and SUBSCRIBE ❤️ to my channel to receive more amazing content in data analytics and data science.
_____________________________________________________________________
🏷️ Tags
sql,
sql for data science,
sql for data analytics,
sql practise questions,
sql practise questions and solutions,
sql tutorials for beginners,
sql problems for data engineers,
ashutosh,
ashutosh kumar,
ashutosh kumar analytics,
sql problems easy,
sql problem medium,
sql problems hard,
sql window functions,
sql advanced questions,
rank functions in sql,
lag lead in sql,
sql interview questions and answers,
sql interview questions,
sql questions asked in interviews,
hackerrank sql solutions,
hackerearth sql solutions,
leetcode sql solution
🏷️HashTags
#sql #interviews #questions #solutions

Опубликовано:

 

11 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@amitkamble8493
@amitkamble8493 11 месяцев назад
Same question were asked in Capgem, unable to answer as i was fresher😂
@AshutoshKumaryt
@AshutoshKumaryt 11 месяцев назад
Now you got it
@AshutoshKumaryt
@AshutoshKumaryt Год назад
👉 SQL Portfolio Project Indian Census- Part 1 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-I3YvjFfn478.html 👉 Advanced Sql Concepts Complete Playlist ru-vid.com/group/PLbTF1OfX62c3RQ_ZFfyNBWVPdz_OWTMLG
@ck13514
@ck13514 5 месяцев назад
One of the best video for joins.
@AshutoshKumaryt
@AshutoshKumaryt 5 месяцев назад
THANKS
@soumyasaxena77
@soumyasaxena77 3 месяца назад
none of our clg professors taught us the *catch* !! learnt something new today :)
@AshutoshKumaryt
@AshutoshKumaryt 3 месяца назад
Thanks
@rudraksh_kawadkar
@rudraksh_kawadkar 7 месяцев назад
Correct it was asked to me by infosys
@debbh274
@debbh274 9 месяцев назад
🎉 great work
@AshutoshKumaryt
@AshutoshKumaryt 9 месяцев назад
Thanks
@avimalik9071
@avimalik9071 Год назад
great video!!!
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Thanks a lot
@binaykumar2060
@binaykumar2060 Год назад
Nice video
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Thanks
@hasanmougharbel8030
@hasanmougharbel8030 Год назад
Hey man, glad to meet again. I have only a simple enquiry as a new sql learner. How order by clause differs from rank function in sql? Thanks for taking care of this.
@AshutoshKumaryt
@AshutoshKumaryt Год назад
rank function helps mainly in providing and exact output lets say i want to get the 7th rank in this case rank will be useful and we cannot use order by here
@hasanmougharbel8030
@hasanmougharbel8030 Год назад
@@AshutoshKumaryt i think i can use order by with offset, but still rank is an easy solution...thanks man
@AshutoshKumaryt
@AshutoshKumaryt Год назад
@@hasanmougharbel8030 yes of course what i mean was rank is much more easy
@laxmanreddy2051
@laxmanreddy2051 2 месяца назад
please can you provide few more questions for me in quries , and scenario based questions
@namrataghosh111
@namrataghosh111 Год назад
Very nice explanation 👏
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Thanks a lot
@krishnachaitanyapanangapal6307
@krishnachaitanyapanangapal6307 7 месяцев назад
Thank u brother for educating us
@AshutoshKumaryt
@AshutoshKumaryt 7 месяцев назад
Keep learning brother
@shauryatiwari8286
@shauryatiwari8286 Год назад
Bro your tutorials are great
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Thank a lot
@satyendrakumar3319
@satyendrakumar3319 Год назад
Nice tutorial 👌
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Thanks
@abhishekathare7145
@abhishekathare7145 12 дней назад
Don't u think that columns which r used in two tables are PK, how could those PK values repeat...
@raghavmittal7112
@raghavmittal7112 Год назад
Bro this the question which leads me to rejected from interview .. you can explain the join concepts like join can be defined as cross product of two tables + some conditions ... When your doing inner join in first question you while putting inner join you are doing cross product first in internal then according to condition you are fetching out all the similar values .. let me know if i am correct like this query Select * from table 1 a , table 2 b where a. Id_1 = b . Id_2
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Never looked from this angle this sounds cool and yes i think we can say this , thanks a lot for the comment
@bhagirath9131
@bhagirath9131 Год назад
Thank you bro :)
@shubhamgupta9323
@shubhamgupta9323 11 месяцев назад
in inner join if we add null value it should also show in output that null matches null. Why it is not showing?
@AshutoshKumaryt
@AshutoshKumaryt 11 месяцев назад
Null is not equal to null
@programmershub3144
@programmershub3144 10 месяцев назад
Same question asked in meesho
@programmershub3144
@programmershub3144 10 месяцев назад
I see this video now but if i see this video yesterday i will get job
@tusharboddu557
@tusharboddu557 2 месяца назад
Bro you doing great job 🫡
@shivaaynamah6612
@shivaaynamah6612 Год назад
Same questions were asked by Cvent company in the interview
@AshutoshKumaryt
@AshutoshKumaryt Год назад
See i said 😃 !
@priyankask3374
@priyankask3374 4 месяца назад
one of the best videos and explanation is just awesome, I have a doubt,can anyone explain to me why null values for the value 2,3,4 in the below query and output full outer join: select * from table1 full outer join table2 on table1.id = 1; output: table1_id table2_id 1 1 1 1 1 2 1 2 1 3 1 3 1 2 1 2 1 NULL 1 NULL 2 NULL 3 NULL 4 NULL 3 NULL NULL NULL NULL NULL right join : select * from table1 left join table2 on table1.id = 1; output: table1_id table2_id 1 1 1 2 1 3 1 2 1 NULL 1 1 1 2 1 3 1 2 1 NULL 2 NULL 3 NULL 4 NULL 3 NULL NULL NULL NULL NULL
@grvmavi
@grvmavi 4 месяца назад
null is not equal to null in sql
@shubhammaind4904
@shubhammaind4904 Год назад
Nice video
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Thanks
Далее