Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[b][red]This message was edited by BJ008 at 2004-11-4 11:58:0[/red][/b][hr]
[b][red]This message was edited by BJ008 at 2004-11-4 11:28:47[/red][/b][hr]
I have table with four columns (A, B, C, D).
I need something like this :
SELECT COUNT(A) FROM MyTable GROUP BY A, B, DISTINCT(C), DISTINCT(D)
By this query I want to say : I want to group rows with same A, same B, unique C, unique D.
But I cann't use DISTINCT in GROUP BY clause. How can I write it using legal SQL query ???
I will really thanful you if you help me, much thanks.