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


Difference Between Stored Procedure And Function
Stored Procedures Functions Stored procedures may or may not return a value Function should return a value Stored procedure should be executed by ‘EXECUTE’...


PLSQL- PROGRAM TO FIND THE GIVEN CHARACTER HOW MANY TIMES REPEATED
declare str varchar2(80):='&str'; ab char:='&ch'; i number; l number; c number; begin l:=length(str); for i in 1..l loop if (substr(str,i,1=ab)...

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