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
what is best editor for oracle?
ical not syncing with exchange 2010 - snow leopard
Importing an ESX 3.5u5 machine into VMWare Workstation 7. RAM not expandable past 3600MB?
Is there a way to wrap text in a floated div displayed inline
Which Cisco Router Is This?
Adobe Acrobat 9 inserting tab pages
acronis disk director server 10
IIS host header and DNS
div id
Remove shortcuts possibility in a web page or to put in favorite