Beste allemaal,
Ik heb onderstaande query die van verschillende tabellen het totaal aantal records telt.
Nu wil ik graag in de resulterende tabel voor het aantal de bijbehorende omschrijving, dus een extra kolom met "Customers" en daarachter het aantal (dat heb ik dus al).
Hoe kan ik dit voor elkaar krijgen?
groet, Patric
Ik heb onderstaande query die van verschillende tabellen het totaal aantal records telt.
Code:
SELECT Count([TEP shipment].[Label lot]) AS [Aantal records]
FROM [TEP shipment];
Union
SELECT Count([TEP label lots].[Label lot])
FROM [TEP label lots];
Union
SELECT Count([Twistar lots].[Twistar™ lot])
FROM [Twistar lots];
Union
SELECT Count([Twistar inspection lots].[Twistar™])
FROM [Twistar inspection lots];
Union
SELECT Count([Twistar production data].[Lotnummer])
FROM [Twistar production data];
Union
SELECT Count([Projects].[Code1])
FROM [Projects];
Union
SELECT Count([Customers].[Customers])
FROM [Customers];
Union
SELECT Count([TAC lots].[TAC lot])
FROM [TAC lots];
Union
SELECT Count([HC TAC lots].[HC lot])
FROM [HC TAC lots];
Union
SELECT Count([HC TAC lots].[HC lot])
FROM [HC TAC lots];
UNION SELECT Count([Twistar specifications].[Twistar™ specifications])
FROM [Twistar specifications];
Nu wil ik graag in de resulterende tabel voor het aantal de bijbehorende omschrijving, dus een extra kolom met "Customers" en daarachter het aantal (dat heb ik dus al).
Hoe kan ik dit voor elkaar krijgen?
groet, Patric
Laatst bewerkt: