Microsoft
Software
Hardware
Network
Question : ORDER BY items must appear in the select list if the statement contains a UNION operator.
i have done unions where i did not have to do any order bys.
But when I did a union of 2 select statements, I get the above error; why is this?
thanks
Answer : ORDER BY items must appear in the select list if the statement contains a UNION operator.
You can do it like this:
=iif(Fields!CustomerState.
Value = "NY", "Tri-State", iif(Fields!CustomerState.V
alue = "CT", "Tri-State",iif(Fields!Cus
tomerState
.Value = "NJ", "Tri-State", Fields!CustomerState.Value
)))
Random Solutions
Quick way to clear thousands of SMS / messages from a basic model Nokia mobile phone
Last full week in sql
How to suppress a page header when only a sub report is visable (in group footer 1b)
Black Screen on Windows Server 2008 R2
I need to identify and count unique words in a group of documents
When I try to creat a DB in SQL with Microsoft SQL Server Management Studio I get an error 5133
Parent/Child/Child relationships in forms and sub-forms
Outlook Express - Can't Search folders
Gateway to Gateway IPsec VPN with Active Directory
UpdateModel will not update