All,
Is it possible in a union query to only bring in the top 3 lowest rates per Route ID LATA. I have pasted my query below. There can be mulitple RATES per ROute ID LATA.
SELECT [tblLATARATE].[ROUTE ID LATA],[tblLATARATE].[3 DIGIT LATA],[tblLATARATE].[OCN], [QWEST ER] AS RATE, "Qwest ER" AS Vendor
FROM [tblLATARATE] Where [QWEST ER]<1;
UNION
SELECT [tblLATARATE].[ROUTE ID LATA],[tblLATARATE].[3 DIGIT LATA], [tblLATARATE].[OCN],[GLOBAL Er] AS RATE, "Global Er" AS Vendor
FROM [tblLATARATE] where [GLOBAL Er]<1;
UNION
SELECT [tblLATARATE].[ROUTE ID LATA],[tblLATARATE].[3 DIGIT LATA],[tblLATARATE].[OCN], [Ntera Er] AS RATE, "Ntera Er" AS Vendor
FROM [tblLATARATE] where [Ntera Er]<1;
UNION
SELECT [tblLATARATE].[ROUTE ID LATA], [tblLATARATE].[3 DIGIT LATA], [tblLATARATE].[OCN],[US LEC Er] AS RATE, "US LEC ER" AS Vendor
FROM [tblLATARATE] where [US LEC Er]<1;
Thanks for the help
Is it possible in a union query to only bring in the top 3 lowest rates per Route ID LATA. I have pasted my query below. There can be mulitple RATES per ROute ID LATA.
SELECT [tblLATARATE].[ROUTE ID LATA],[tblLATARATE].[3 DIGIT LATA],[tblLATARATE].[OCN], [QWEST ER] AS RATE, "Qwest ER" AS Vendor
FROM [tblLATARATE] Where [QWEST ER]<1;
UNION
SELECT [tblLATARATE].[ROUTE ID LATA],[tblLATARATE].[3 DIGIT LATA], [tblLATARATE].[OCN],[GLOBAL Er] AS RATE, "Global Er" AS Vendor
FROM [tblLATARATE] where [GLOBAL Er]<1;
UNION
SELECT [tblLATARATE].[ROUTE ID LATA],[tblLATARATE].[3 DIGIT LATA],[tblLATARATE].[OCN], [Ntera Er] AS RATE, "Ntera Er" AS Vendor
FROM [tblLATARATE] where [Ntera Er]<1;
UNION
SELECT [tblLATARATE].[ROUTE ID LATA], [tblLATARATE].[3 DIGIT LATA], [tblLATARATE].[OCN],[US LEC Er] AS RATE, "US LEC ER" AS Vendor
FROM [tblLATARATE] where [US LEC Er]<1;
Thanks for the help