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

Поделиться
HTML-код
  • Опубликовано: 29 июл 2022
  • 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

Комментарии • 11

  • @AshutoshKumaryt
    @AshutoshKumaryt  2 года назад +3

    👉 SQL Portfolio Project Indian Census- Part 1
    ruclips.net/video/I3YvjFfn478/видео.html
    👉 Advanced Sql Concepts Complete Playlist
    ruclips.net/p/PLbTF1OfX62c3RQ_ZFfyNBWVPdz_OWTMLG

  • @kushagradutta2745
    @kushagradutta2745 2 года назад +1

    Hey Ashutosh.
    This video was insightful. Thank you for your valuable content, it really helps a lot as I'm learning sql.

  • @Souviri
    @Souviri Год назад +1

    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..

  • @AyushSrivastava-qp1mw
    @AyushSrivastava-qp1mw Год назад +1

    made my day

  • @surajshitole1785
    @surajshitole1785 Год назад +1

    What about if datatype is different for all these three joining columns
    . Without using casting / converting

  • @prudhvirajkilli3833
    @prudhvirajkilli3833 Год назад +1

    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