Solved

double inner join

Posted on 2014-03-20
1
476 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

733 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