Tech Diary

July 19, 2017

Inner Join

Will list rows where left and right match

select
emp.id,
emp.name,
dept.name
from employee emp
inner join department dept
on emp.dept_id = dept.dept_id

Will list only those employees who have a department which is found in the dept table.
Posted by DV at July 19, 2017
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: SQL, Tech

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Total Pageviews

Search This Blog

Labels

  • AWS
  • Bitbucket
  • Data Science
  • Finance
  • Git
  • Graph data
  • ionic
  • Java
  • JBoss
  • Linux
  • MySQL
  • R
  • Recursive
  • Regular Expression
  • S3
  • Scheduling
  • SQL
  • Tech
  • Technical Analysis
  • Teradata
  • Unix
  • Web

About Me

DV
View my complete profile

Blog Archive

  • ►  2022 (1)
    • ►  March (1)
  • ►  2021 (1)
    • ►  February (1)
  • ►  2020 (2)
    • ►  March (1)
    • ►  February (1)
  • ►  2019 (29)
    • ►  August (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (5)
    • ►  March (20)
    • ►  January (1)
  • ►  2018 (84)
    • ►  December (56)
    • ►  November (27)
    • ►  June (1)
  • ▼  2017 (18)
    • ►  November (1)
    • ►  September (1)
    • ►  August (1)
    • ▼  July (3)
      • Inner Join
      • Right Join
      • Left Join
    • ►  May (1)
    • ►  February (9)
    • ►  January (2)
  • ►  2016 (15)
    • ►  October (2)
    • ►  September (4)
    • ►  July (6)
    • ►  June (2)
    • ►  May (1)
  • ►  2015 (3)
    • ►  July (2)
    • ►  June (1)
  • ►  2014 (20)
    • ►  September (3)
    • ►  August (8)
    • ►  July (5)
    • ►  May (3)
    • ►  April (1)

Popular Posts

Simple theme. Powered by Blogger.