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
How purge records from access database
Transfert in Microsoft access db
Why is my VB script limiting results to 1500 ?
SQL query help (MySQL)
POST error
Add a child class to a domain service POCO in Silverlight RIA
SQL complicated request
HTML email tables breaking in Outlook 2007
Change Table Column to identity
Loading PBR for descriptor 2…done.