Microsoft
Software
Hardware
Network
Question : Need to do a selective join
I have created a multi table join and need to join just one more table, please see attachment. I have commented out the table I that is creating the problem. In a nutshell I just want to jjoin each row in the top select with correct row in the bottom table select. But I can't get a unique join, so it's returning two rows becaise band_id and Security_level id have two matches. What I need is to join the top select with the bottom table where band_id and security_level_id (top select) = band_id and security_level_id (bottom select). I guess this is another level select but just don't know the syntax
sql-select.bmp
(3.5 MB)
(File Type Details)
Screen shot of select and result
Answer : Need to do a selective join
Hi,
Do you mean to do?
join Band_Security_Level f on a.Band_ID = f.Band_ID
AND a.[Security_Level_ID] = f.[Security_Level_ID]
/peter
Random Solutions
How can I convert a custom control that calls User32 and Shell32 to work on Mono?
SBS 2003 / Error: too many hops (delivery attempts: 0)
Excel Date Time format conversion yyyy-mmm-dd hh:mm:ss to mm/dd/yyyy hh:mm:ss
VB .NET 2005 Combine Two Tables on Primary Key and Display in DataGridView
wordpress causing infinite tabs opening?
Setting up my first database driven web site
How to avoid zero(s) in front of number(s) disappears in array
How do I modify this php script to send a confirmation?
FAX configuration in windows 2003 server with Gmail.
AMD vs Intel? on dell's website - which has greater VM performance?