Course Content

  • learnvern-1
  • learnvern-2

Course Content


A FOREIGN KEY ensures data integrity by ensuring that data is entered into the database in accordance with certain standards. When you extract/query data from a database, you utilise a JOIN to specify how the data should be selected.

When you use SQL's JOIN function, it doesn't mean you can just join two tables:

  • Using a Junction Table to Connect Three Tables
  • The first step is to examine the schema and choose which columns to display.
  • The next step is to figure out which tables are required for the query.
  • We'll have to join all of the tables together at the end.

INNER, LEFT OUTER, RIGHT OUTER, FULL OUTER, and CROSS are the five forms of JOIN defined by the ANSI standard SQL.

In MySQL, the default JOIN is an INNER JOIN, which retrieves all rows from both tables based on the specified keywords as long as the columns in both tables match.

An INNER JOIN in SQL is the same as a JOIN clause in that it joins rows from two or more tables. The consequence of an inner join of A and B is A intersect B, or the inner half of a Venn diagram intersection.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere