Afficher un message
Vieux 17/09/2007, 23h08   #2
Steve
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Joining search queries


"Alec" <ajtdds@aol.com> wrote in message
news:1190064167.203859.224910@19g2000hsx.googlegro ups.com...
> Sorry newbie question...
>
> I have made two different search queries on the same table.
>
> How can I join these together in one list, so the results from the
> first query come listed before the second, ie keeping the same order.


no telling since you post no code. in keeping...

select *
from
(
select 'a' source
'2' field
from foo
union
select 'b' source
'1' field
from foo
) derived
order by source


  Réponse avec citation
 
Page generated in 0,05619 seconds with 9 queries