Solved

double inner join

Posted on 2014-03-20
1
478 Views
Last Modified: 2014-03-20
Is it possible to select inner join into 2 tables.
I need this information put together:

select * from bkgReciepts
JOIN bkgDivision
ON bkgReciepts.divisionint=bkgDivision.int
where bkgReciepts.int = 199

can I also add,

join bkgLogin
on bkgReciepts.userInt=bkgLogin.id
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 24

Accepted Solution

by:
mankowitz earned 500 total points
ID: 39944376
sure.

You can join as many tables as you need.

select * from bkgReciepts
JOIN bkgDivision ON bkgReciepts.divisionint=bkgDivision.int
join bkgLogin on bkgReciepts.userInt=bkgLogin.id
where bkgReciepts.int = 199
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question