chetan2309-gmail
-
7/30/2013 6:29:05 AM
Custom query repeater
Hi,
I have a table with three fields Specie, Question , Answers. I wish to select 2 rows of each distinct Specie. Can anyone guide with custom query?
I wrote something like this
select count(1), Specie, Question, Answer from pm_answers group by Specie, Question, Answer
LIMIT clause is not working with MS-SQL
Thanks
|