Hi all:
My boss gave me this undaunting task of trying to reduce this query to one row. This can be done by eliminating two of the columns and doing a group, but he needs to see that data, too. He just wants it in one row.
I've highlighted the two that need to be removed to return one row and then will have to be brought back in. I just haven't the foggiest idea how.
Can this be done?
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors
My boss gave me this undaunting task of trying to reduce this query to one row. This can be done by eliminating two of the columns and doing a group, but he needs to see that data, too. He just wants it in one row.
I've highlighted the two that need to be removed to return one row and then will have to be brought back in. I just haven't the foggiest idea how.
Code:
SELECT
OrderID,
DNIS,
AdKey,
PhoneNumber,
[b][COLOR=red]--ProductGroup, [/color][/b]
ContactFirstName,
ContactLastName,
BillingAddress,
Address2,
City,
StateOrProvince,
PostalCode,
Code,
CreditCardNumber,
expdate--,
[b][COLOR=red]--itemtype [/color][/b]
from ##tempj1
group by
OrderID,
DNIS,
AdKey,
PhoneNumber,
[b][COLOR=red]--ProductGroup, [/color][/b]
ContactFirstName,
ContactLastName,
BillingAddress,
Address2,
City,
StateOrProvince,
PostalCode,
Code,
CreditCardNumber,
expdate--,
[b][COLOR=red]--itemtype [/color][/b]
Can this be done?
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors