Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic where condition
Message
From
30/06/2015 14:48:54
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01621606
Message ID:
01621614
Views:
39
>I see, you suggest to simply write N commands for each type. Since my final result is an integer count, I guess I can declare it and write as many commands as I have types - it may be a simple solution here.

If you are returning the same content but based on two WHERE clauses, than I would suggest the example I provided. If you wish to return various content, then I would suggest IF ELSE.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform