In the following query the 'T.Cprofile' datatype is ntext and therefore I get an error telling me that I cannot execute a group by close on this datatype.
SELECT t.ProfType, T.AdvType, T.Cprofile FROM P_SEARCH RIGHT JOIN T ON P_SEARCH.REG_ID = T.REG_ID
GROUP BY T.ProfType, T.AdvType, T.Cprofile
HAVING (((P_SEARCH.Cat)= @ValDat))
ORDER BY T.ProfType;
Is there a way to group the other values and retrieve the value of T.Cprofile for each of the grouped value?
Is there a way to create a sub query or other that will give me a result?
Thanks for any information.
louis