Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

MSSQL can certainly do all of that. panarky offered one way of doing it, but you can also write a single SQL Function that takes a parameter for filtering by gender (or not), and encapsulates the pagination logic. You will then be able to select form that function passing different parameters for filtering by gender and only adding a sort at the end.

Likewise the business rule validation could be encapsulated in triggers or in a stored procedure that would validate all changes, much like your C# code would.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: