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


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

Truncate, Drop And Delete Commands In SQL
Truncate: Truncate command will delete the Table data only, it keeps the table schema as it is. Table data Can be rollback Example : TRUNCATE TABLE User; Drop: Drop command will delete both...


Top 10 SQL Concepts for Job Interview
1. SELECT and FROM: This is the “heart” of any SQL query - SELECT columns FROM table.2. WHERE: This acts as a filter and allows you to select only relevant rows based on conditions.3. GROUP...
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