Тёмный

Can we join tables even if they don't have common columns ? | Advanced Sql Concepts | Ashutosh Kumar 

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

Sql one of the most important language asked in most of the analytics interviews,in this series i have discussed some advanced level sql concepts that are frequently asked in data analyst,business analyst interviews. In this video i have covered cross join and self join concepts in sql.
👉 Code
drop table if exists department;
CREATE TABLE department(Name VARCHAR(200));
INSERT INTO department(Name)
VALUES('Engineering'),
('Marketing'),
('Legal'),
('Finance'),
('HR');
drop table if exists shift;
CREATE TABLE shift(Id VARCHAR(200));
INSERT INTO shift(Name)
VALUES('Day'),
('AfterNoon'),
('Night');
drop table if exists country;
CREATE TABLE country(Name VARCHAR(200));
INSERT INTO country(Name)
VALUES('India'),
('US');
mention the shift timings
Day 7:00 a.m. to 3:00 p.m.
Afternoon 3:00 p.m. to 11:00 p.m.
Night 11:00 p.m to 7:00 a.m
______________
👉 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

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

 

29 июл 2022

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@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
@kushagradutta2745
@kushagradutta2745 Год назад
Hey Ashutosh. This video was insightful. Thank you for your valuable content, it really helps a lot as I'm learning sql.
@Souviri
@Souviri Год назад
Thank you so much, spent quite sometime to figure out how to add a case statement in cross join, and then came across your video. Its very helpful..
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Glad it helped!
@surajshitole1785
@surajshitole1785 Год назад
What about if datatype is different for all these three joining columns . Without using casting / converting
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Try it Suraj let me also know what you got
@AyushSrivastava-qp1mw
@AyushSrivastava-qp1mw Год назад
made my day
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Thanks a lot
@prudhvirajkilli3833
@prudhvirajkilli3833 Год назад
could you please suggest when there are no direct relations, still if i want to identify those, can i get such relations. Please suggest me if you have any idea
@AshutoshKumaryt
@AshutoshKumaryt Год назад
Please elaborate
@prudhvirajkilli3833
@prudhvirajkilli3833 Год назад
@@AshutoshKumaryt I explored lot , no luck
Далее
NON EQUI JOINS IN SQL | Advanced SQL | Ashutosh Kumar
44:57
STRING AGG IN SQL | Advanced SQL | Ashutosh Kumar
29:33
CTE s IN SQL | Advanced SQL | Ashutosh Kumar
26:29
Просмотров 7 тыс.
Using SQL to Select Records from Multiple Tables
10:32
SQL Join 3 Tables: How-To with Example
4:06
Просмотров 112 тыс.
Recursive CTE s IN SQL | Advanced SQL | Ashutosh Kumar
40:00