Solved

double inner join

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now