UrbanPro
true

Learn SQL Programming from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

In which case (realtime scenario) should you think of using Different SQL JOINs (Simple tips)

Dinesh Chandar mk
31/01/2023 0 0

Whenever you want data (columns) to be fetched from more than a single table then think of JOINS in SQL.

It could be 2 or more tables.

*Mostly you join using Primary key and Foreign Key

1) if you want only matching data (rows) from related tables use EQUI JOIN

2) if you want matching and non-matching data (rows) from related tables think of OUTER JOINS

    a) LEFT and RIGHT OUTER JOINS basically means from which table you want to fetch NON-MATCHING rows

    b) FULL OUTER fetches NON-MATCHING rows from both the TABLES

3) If you want to fetch 2 rows from the same table in a SINGLE select you go in for SELF JOIN

4) Any join between to tables without '=' symbol is called NON-EQUI JOIN.

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Primary Key VS Unique Key In Database.
PRIMARY KEY UNIQUE KEY Primary key is a set of one or more fields/columns of a table that uniquely identify a record in database table. Primary keys must contain unique values. Unique-key...

Cursors In SQL Server
First thing first Usage of Cursors is not encouraged in SQL Server as they are slow. You may go with While loop if you need to iterate through a recordset. Cursor is a database object to retrieve data...


Database Normalization
Database Normalization is the process of reducing duplication in database by decomposing the table1. Normal Form (1NF): Every attribute is atomic, Each cell to be single valued No multivalued attribute:...

SQL Union Vs Union ALL
SQL UNION vs UNION ALL Operator Usage UNION: UNION combines the result set of two or more queries into a single result set. UNION removes duplicate records (where all columns in the results are the same). UNION...
X

Looking for SQL Programming Classes?

The best tutors for SQL Programming Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn SQL Programming with the Best Tutors

The best Tutors for SQL Programming Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more