nickdaniels
MIS
I have an SQL statement:
SELECT
contact_lookup.summary,
count(DISTINCT contact.vduid)
FROM
contact,
contact_lookup
WHERE
(contact_lookup.contact_key=contact.vduid)
GROUP BY
contact_lookup.summary
This generates the following message:
[Microsoft][ODBC SQL Server Driver][SQL Server]The text, ntext, and image data types cannot be used in a GROUP BY clause.278
If I remove the summary field, or just use it without aggregated fields like vduid I'm okay. I'm completely new to SQL Server, so far as I know this kind of statement would be allowed in other databases.
cheers, Nick
Nick
ndaniels@ventura-uk.com
If it's Data Warehousing or related then I want to know - but post it to the forum!
SELECT
contact_lookup.summary,
count(DISTINCT contact.vduid)
FROM
contact,
contact_lookup
WHERE
(contact_lookup.contact_key=contact.vduid)
GROUP BY
contact_lookup.summary
This generates the following message:
[Microsoft][ODBC SQL Server Driver][SQL Server]The text, ntext, and image data types cannot be used in a GROUP BY clause.278
If I remove the summary field, or just use it without aggregated fields like vduid I'm okay. I'm completely new to SQL Server, so far as I know this kind of statement would be allowed in other databases.
cheers, Nick
Nick
ndaniels@ventura-uk.com
If it's Data Warehousing or related then I want to know - but post it to the forum!