SQL tutorial on inner join queries. Writing Queries to combine two tables in one results query.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
51,572
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 16, 2010

From chapter 3.1 of Beginning SQL Joes 2 Pros (www.joes2pros.com). Learn how to use basic inner joins to see two tables in one results set.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Joes2Pros)

  • Hello 2yung4grey. This video is from the Joes2Pros Vol1 book ISBN-10: 143925317X ISBN-13: 978-1439253175.

    To get the right software (costs $50) go the Joes2Pros web site and click "Buy Now". There will be about 10 items on this page, click the grey box.

  • You can concatenate the fields to do this. Let’s say your Employee table has an ID that is a combo of your SSN and FirstName. The Payrates table as a EmpID field. You would do this.

    SELECT *

    FROM Employee INNER JONI Payrates

    ON Employee.SSN + Employee.FirstName = Payrates.EmpID

  • The tool used is called Camtasia 7.0.

  • Yes Indeed! For the upcoming Launch of the Vol3 later this month there will be a video to cover Primary and Foreign keys. If you are a subscriber you will get the notification as soon as it goes up. Otherwise keep checking back.

  • Yes it looks like you this is a query being used as a derived table. I cover that in Chapter 9 of "SQL Queries Joes 2 Pro" but here is a very quick lesson. If you want a query to act like a table just put in parenthesis and give it a name like this...

    SELECT *

    FROM (SELECT * FROM Location WHERE Country = ‘UK’) as UKLocation

    Here it’s like you are selecting form a UKLocation table which is really derived from the Location table.

  • You are the best. Wonderful tutorial on Joins. Thanks Joes :-)

  • You are welcome! Glad you enjoyed it! You can download part of the book for free at the JoesPros web site.

see all

All Comments (30)

Sign In or Sign Up now to post a comment!
  • Thanks, this tutorial was a last minute god-send for a 'Newbie' like myself.

  • very nice, waiting for more :)

  • Perfect, thank you so much!

  • Respond to this video... also what book are you referring to? 

  • @Joes2Pros what software do i need to downlaod this type of software?. I downloaded oracle 11g r2, hoping i will get this exact type of software. I know it's sql plus but i cant download the software(Its already on my start menu under oracle installs). Please help. I'm trying to get ahead of my class before school starts. Thanks.

  • @Joes2Pros what software do i need to downlaod this type of software?. I downloaded oracle 11g r2, hoping i will get this exact type of software. I know it's sql plus but i cant download the software(Its already on my start menu under oracle installs). Please help. I'm trying to get ahead of my class before school starts. Thanks.

  • @Joes2Pros what software do i need to downlaod this type of software?. I downloaded oracle 11g r2, hoping i will get this exact type of software. I know it's sql plus but i cant download the software(Its already on my start menu under oracle installs). Please help. I'm trying to get ahead of my class before school starts. Thanks.

  • thank you man i love you !!!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more