kattzndagz
Technical User
Hi
I have a Deficiency Report Register database.
I need to run a query which will end up looking like this
This Month
No. No. No.
Type Raised Rework Closed
Corrective Actions 0 0 0
Non-Conformances 9 9 0
Process Improvements 0 0 0
I have the SQL (see below) from the query I have the data in but i can't seperate it into the above information - no matter what i do. I can't seem to get the zero values and all of the info in the one query. When i have separate queries i can't get that info into one report. I have tried a cross tab too but it wouldn't seem to work either.
SELECT [DR Register Tbl].Type, [DR Register Tbl].[Date Raised], [DR Register Tbl].[Rework Required], [DR Register Tbl].[Close-Out Date]
FROM [DR Register Tbl]
WHERE ((([DR Register Tbl].Type) Is Not Null));
I also have this query..
SELECT [DR Register Tbl].Type, Count([DR Register Tbl].[Date Raised]) AS [CountOfDate Raised], Count([All Open DR's].[DR No]) AS [CountOfDR No], Count([All Closed DR's].[Close-Out Date]) AS [CountOfClosed Out]
FROM ([DR Register Tbl] LEFT JOIN [All Closed DR's] ON [DR Register Tbl].[DR No] = [All Closed DR's].[DR No]) LEFT JOIN [All Open DR's] ON [DR Register Tbl].[DR No] = [All Open DR's].[DR No]
GROUP BY [DR Register Tbl].Type
HAVING ((([DR Register Tbl].Type)<>"nil"));
which looks like this
Overall
Type Raised Open Closed
Corrective Actions 22 3 19
Non-Conformance 118 51 67
Process Improvement 49 12 37
which works fine but overall i need the two lots of data to form one table for our monthly report. i.e side by side
I hope someone can help me
I have a Deficiency Report Register database.
I need to run a query which will end up looking like this
This Month
No. No. No.
Type Raised Rework Closed
Corrective Actions 0 0 0
Non-Conformances 9 9 0
Process Improvements 0 0 0
I have the SQL (see below) from the query I have the data in but i can't seperate it into the above information - no matter what i do. I can't seem to get the zero values and all of the info in the one query. When i have separate queries i can't get that info into one report. I have tried a cross tab too but it wouldn't seem to work either.
SELECT [DR Register Tbl].Type, [DR Register Tbl].[Date Raised], [DR Register Tbl].[Rework Required], [DR Register Tbl].[Close-Out Date]
FROM [DR Register Tbl]
WHERE ((([DR Register Tbl].Type) Is Not Null));
I also have this query..
SELECT [DR Register Tbl].Type, Count([DR Register Tbl].[Date Raised]) AS [CountOfDate Raised], Count([All Open DR's].[DR No]) AS [CountOfDR No], Count([All Closed DR's].[Close-Out Date]) AS [CountOfClosed Out]
FROM ([DR Register Tbl] LEFT JOIN [All Closed DR's] ON [DR Register Tbl].[DR No] = [All Closed DR's].[DR No]) LEFT JOIN [All Open DR's] ON [DR Register Tbl].[DR No] = [All Open DR's].[DR No]
GROUP BY [DR Register Tbl].Type
HAVING ((([DR Register Tbl].Type)<>"nil"));
which looks like this
Overall
Type Raised Open Closed
Corrective Actions 22 3 19
Non-Conformance 118 51 67
Process Improvement 49 12 37
which works fine but overall i need the two lots of data to form one table for our monthly report. i.e side by side
I hope someone can help me