SQL/C# MVC: Order over multiple fields -
I have records for whom "Firstname" and "Lastime" for individuals, and for both companies "company name" The records live in the same table, and I know that it is through a company with Isiompany Bit field in my table or with a person.
The problem I am facing now is that I have given them a order grid, in this form:
There is no "real" grid, it has only one table that has been provided to server side. How do I order this (via SQL / LINQ?) So that I can order it correctly, eg: Fitz, Mark (Indian) Field, Jonathan (Personal) Waste Resistance Inc. (Company) Fyat, Abel (personal)
I appreciate your help people .... Difficult time with this time: (
when IsCompany = 1 THEN company ELSE LastName + ',' + First MyTable ORDER BY DisplayName
Comments
Post a Comment