Hi there..
I have a dataset created of 3 tables, my structure is a little like:
Application Table:
AppID (Int32 Auto generated (primary key))
AppName (String)
AppLicense (string)
Busines Layer Table:
BLID (Int32 Auto generated (primary key))
BLName (String)
BL_mm_App:
ID (Int32 Auto generated (primary key))
BLID (Int32)
ApplID (Int32)
I have 2 relationships defined.
relAppToBL (BLTable.BLID on BL_mm_App.BLID)
relBLToApp (AppTable.AppID on BL_mm_App.AppID)
This allows me to identify all the applications that are included in any given business layer by performing the following:
I now need to perform the opposite query (i.e. list all applications not in a business layer). however I cannot figure out how to do a not in...
something like.
Can anyone point me in the right direction please.
Thanks in advance.
I have a dataset created of 3 tables, my structure is a little like:
Application Table:
AppID (Int32 Auto generated (primary key))
AppName (String)
AppLicense (string)
Busines Layer Table:
BLID (Int32 Auto generated (primary key))
BLName (String)
BL_mm_App:
ID (Int32 Auto generated (primary key))
BLID (Int32)
ApplID (Int32)
I have 2 relationships defined.
relAppToBL (BLTable.BLID on BL_mm_App.BLID)
relBLToApp (AppTable.AppID on BL_mm_App.AppID)
This allows me to identify all the applications that are included in any given business layer by performing the following:
Code:
Dim BLApps() as DataRow = dtBL_mm_App.Select("BLID = '2343')
I now need to perform the opposite query (i.e. list all applications not in a business layer). however I cannot figure out how to do a not in...
something like.
Code:
Select * from Apps where AppID Not In (Select Distinct AppID from BL_mm_App)
Can anyone point me in the right direction please.
Thanks in advance.