neww help with MSSQL select statement
- by gio_333m
Hello,
I need help with select statement in MSSQL.
My table looks like this:
Id (int)
QuestionId (int)
GenreId (int)
I want to select random N rows from this table so that maximum number of same GenreId in the result set is less than X for all GenreId-s except one. For that one GenreId, I need row count with that GenreId to be equal to Y.
Thanks in advance