Hi All,
Got a prob with my Query, I have 7 tables - three of which are tables which just break the many to many relation of the other four tables (as u can see from attached screen shot)
Not many drawings have both project ID / Cad ID and spec ID data related to them - but the query is only pulling in the data where all these relationships exist (17 rows) - when there are like 400 drawing names.
How can i change this query to list all the drawing names wether they have cad/spec/ or project data related to them or not !!
SELECT [Drawing Detail].[Drawing Name], [Drawing Detail].[Drawing Description], [Drawing Detail].[Issue Number], [Specification Detail].[Specification Name], [Project Detail].[Project Name], [CAD Data Detail].[CAD Data Name]
FROM ([Project Detail] INNER JOIN (([Specification Detail] INNER JOIN ([Drawing Detail] INNER JOIN [Link Drawing And Specification No Obsolete] ON [Drawing Detail].[Drawing ID] = [Link Drawing And Specification No Obsolete].[Drawing ID]) ON [Specification Detail].[Specification ID] = [Link Drawing And Specification No Obsolete].[Specification ID]) INNER JOIN [Link Drawing And Project No Obsolete] ON [Drawing Detail].[Drawing ID] = [Link Drawing And Project No Obsolete].[Drawing ID]) ON [Project Detail].[Project ID] = [Link Drawing And Project No Obsolete].[Project ID]) INNER JOIN ([CAD Data Detail] INNER JOIN [Link CAD Data And Drawing No Obsolete] ON [CAD Data Detail].[CAD Data ID] = [Link CAD Data And Drawing No Obsolete].[Cad Data ID]) ON [Drawing Detail].[Drawing ID] = [Link CAD Data And Drawing No Obsolete].[Drawing ID]
GROUP BY [Drawing Detail].[Drawing Name], [Drawing Detail].[Drawing Description], [Drawing Detail].[Issue Number], [Specification Detail].[Specification Name], [Project Detail].[Project Name], [CAD Data Detail].[CAD Data Name]
ORDER BY [Drawing Detail].[Drawing Name] DESC;
Tried to explain the best I could, any help will be appreciated thx
Got a prob with my Query, I have 7 tables - three of which are tables which just break the many to many relation of the other four tables (as u can see from attached screen shot)
Not many drawings have both project ID / Cad ID and spec ID data related to them - but the query is only pulling in the data where all these relationships exist (17 rows) - when there are like 400 drawing names.
How can i change this query to list all the drawing names wether they have cad/spec/ or project data related to them or not !!
SELECT [Drawing Detail].[Drawing Name], [Drawing Detail].[Drawing Description], [Drawing Detail].[Issue Number], [Specification Detail].[Specification Name], [Project Detail].[Project Name], [CAD Data Detail].[CAD Data Name]
FROM ([Project Detail] INNER JOIN (([Specification Detail] INNER JOIN ([Drawing Detail] INNER JOIN [Link Drawing And Specification No Obsolete] ON [Drawing Detail].[Drawing ID] = [Link Drawing And Specification No Obsolete].[Drawing ID]) ON [Specification Detail].[Specification ID] = [Link Drawing And Specification No Obsolete].[Specification ID]) INNER JOIN [Link Drawing And Project No Obsolete] ON [Drawing Detail].[Drawing ID] = [Link Drawing And Project No Obsolete].[Drawing ID]) ON [Project Detail].[Project ID] = [Link Drawing And Project No Obsolete].[Project ID]) INNER JOIN ([CAD Data Detail] INNER JOIN [Link CAD Data And Drawing No Obsolete] ON [CAD Data Detail].[CAD Data ID] = [Link CAD Data And Drawing No Obsolete].[Cad Data ID]) ON [Drawing Detail].[Drawing ID] = [Link CAD Data And Drawing No Obsolete].[Drawing ID]
GROUP BY [Drawing Detail].[Drawing Name], [Drawing Detail].[Drawing Description], [Drawing Detail].[Issue Number], [Specification Detail].[Specification Name], [Project Detail].[Project Name], [CAD Data Detail].[CAD Data Name]
ORDER BY [Drawing Detail].[Drawing Name] DESC;
Tried to explain the best I could, any help will be appreciated thx
Last edited: