RE: UNION y UNION ALL

From: "Javier Aquino H(dot)" <JAquino(at)LexusEditores(dot)com>
To: "'Lazaro Ruben Garcia Martinez'" <lgarciam(at)estudiantes(dot)uci(dot)cu>, "'postgre(dot)es'" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: RE: UNION y UNION ALL
Date: 2011-02-24 02:06:15
Message-ID: !&!AAAAAAAAAAAYAAAAAAAAABnJyuKwyORPiEp2CPpUvXzigAAAEAAAAO9YMlWZjlhPgCjq8FKDDlABAAAAAA==@LexusEditores.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

UNION elimina los registros duplicados producto de la unión de las consultas.

UNION ALL sencillamente suma los resultados de las consultas sin importar si hay duplicidad de registros.

De: pgsql-es-ayuda-owner(at)postgresql(dot)org [mailto:pgsql-es-ayuda-owner(at)postgresql(dot)org] En nombre de Lazaro Ruben Garcia Martinez
Enviado el: miércoles, 23 de febrero de 2011 05:50 p.m.
Para: postgre.es
Asunto: [pgsql-es-ayuda] UNION y UNION ALL

Hola a todos, necesito realizar una consulta que me una resultados de diferentes tablas. Pudiera alguien decirme que diferencias hay entre utilizar UNION y UNION ALL???
Saludos y muchas gracias.

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edwin Quijada 2011-02-24 04:12:59 RE: Enviar correo con un trigger
Previous Message Mario Batres 2011-02-23 22:53:39 Re: UNION y UNION ALL