E
ericp
Enter Parameter Value Query1.[Customer Id] - I hit the OK
button and everything runs fine...
I'm trying to do a straight forward "deduping" of sorts
based upon Customer Id...It doesn't matter which Order Id
I take because they've all "qualified" I just chose MAX()
grouping function in this case...but I don't want to take
just any return amount/shipped amount based upon group
functions too I want the legit stuff... it seems to run
fine I just have to hit hte OK button and that is
annoying me...
SELECT [L1].[Order Id], [L1].[Customer Id], [L1].[Email
Address], [L1].ShippedProductRevenue, [L1].ReturnAmount,
[L1].NetShippedMinusReturns
FROM [Anolon Final Qualified Order ID List] AS L1
WHERE (
[L1].[Order Id] = (
SELECT MAX(L2.[Order Id]) FROM [Anolon Final Qualified
Order ID List] AS L2 where
L2.[Customer Id] = [L1].[Customer Id]
GROUP BY L2.[Customer Id]
)
);
I've checked the spelling of [Customer Id] and done a
search/replace against it too...that's not a
problem...any recommendations?
Thanks,
Eric
button and everything runs fine...
I'm trying to do a straight forward "deduping" of sorts
based upon Customer Id...It doesn't matter which Order Id
I take because they've all "qualified" I just chose MAX()
grouping function in this case...but I don't want to take
just any return amount/shipped amount based upon group
functions too I want the legit stuff... it seems to run
fine I just have to hit hte OK button and that is
annoying me...
SELECT [L1].[Order Id], [L1].[Customer Id], [L1].[Email
Address], [L1].ShippedProductRevenue, [L1].ReturnAmount,
[L1].NetShippedMinusReturns
FROM [Anolon Final Qualified Order ID List] AS L1
WHERE (
[L1].[Order Id] = (
SELECT MAX(L2.[Order Id]) FROM [Anolon Final Qualified
Order ID List] AS L2 where
L2.[Customer Id] = [L1].[Customer Id]
GROUP BY L2.[Customer Id]
)
);
I've checked the spelling of [Customer Id] and done a
search/replace against it too...that's not a
problem...any recommendations?
Thanks,
Eric