vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Not exactly. But you could put the extra condition in a WHERE clause. I'm not clear what AB is in your example but any expression that can go after your IF statement will be valid in the WHERE clause. SELECT a, b FROM mtTable WHERE a = c UNION SELECT a, b FROM mtTable WHERE a = c AND ab = x -- David Portas SQL Server MVP -- |
| Thread Tools | |
| Display Modes | |
|
|