Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One to many relationship INNER JOIN condition
Message
From
14/02/2011 10:20:58
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01500073
Message ID:
01500099
Views:
42
>I'm not sure I'm following you but try
>WHERE NOT EXISTS (SELECT 1 FROM ManyToManyTable
> INNER JOIN ChildTable ON ManyToManyTable.NoChildTable=ChildTable.Numero 
> WHERE Master.Numero=ManyToManyTable.NoMaster
>   AND ChildTable.Enabled <> 1 )
>
Thanks, but I still get unwanted master records having some Enabled=0 child records.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform