Microsoft
Software
Hardware
Network
Question : Sort union query on extra field
I've made a union query and added an extra field for sorting purposes. Is it possible to sort on the extra field without showing the extra field?
SELECT qryCMREmailContacts.WebID,
qryCMREmailContacts.Email,
"" as AE
FROM qryCMREmailContacts
UNION
SELECT qryCMREmailContactsAE.WebI
D, qryCMREmailContactsAE.AEEm
ail as Email, "1" as AE
FROM qryCMREmailContactsAE
Order by WebID, AE, Email;
Answer : Sort union query on extra field
maybe i got it wrong... you can always wrap it with another select like this
select a,b from (
select a,b,c from table1
union
select a,b,c from table2
) x order by c
Random Solutions
office 2007 settings not saved in user profile in terminal server
htaccess 302 redirect - seamless hidden url
Vmware cluster issues
rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed.
Access VBA Word merge
Exchange 2007 Relay to External
FILTERING EXCEL DATA USING VALUES FROM 2ND WORKSHEET
Embedded login information
Running netlogon script
TS WEB ACCESS (STD 2008 Server)