CLASIFICAR UNA CONSULTA DE UNION
Publicado por 2PL (28 intervenciones) el 17/03/2001 23:55:51
¿Como puedo clasificar por el campo [GP04FECH] esta consulta?.
No se donde poner la clausula orderby
Gracias a todos.
select "GAD" as Empresa,* from [GAD GPFIC04]
where MID([GAD GPFIC04].[GP04FECH],3,4)>'1999'
UNION
select "IND" as Empresa,* from [IND GPFIC04]
where MID([IND GPFIC04].[GP04FECH],3,4)>'1999'
UNION select "CM" as Empresa,* from [CM GPFIC04]
where MID([CM GPFIC04].[GP04FECH],3,4)>'1999';
No se donde poner la clausula orderby
Gracias a todos.
select "GAD" as Empresa,* from [GAD GPFIC04]
where MID([GAD GPFIC04].[GP04FECH],3,4)>'1999'
UNION
select "IND" as Empresa,* from [IND GPFIC04]
where MID([IND GPFIC04].[GP04FECH],3,4)>'1999'
UNION select "CM" as Empresa,* from [CM GPFIC04]
where MID([CM GPFIC04].[GP04FECH],3,4)>'1999';
Valora esta pregunta
0