Converse agora com nosso suporte
Chat com o suporte

Toad for SQL Server 7.4.1 - Installation Guide

Add Union Operators

A Union operator joins the results of rows from two or more SELECT statements. Any statement combined with a Union operator must have the same number of columns, and those columns must have the same data type and length. The following operators are available:

  • Union—Returns all rows found in any queried table, but removes any duplicate rows.
  • Union All—Returns all rows found in any queried table, including any duplicate rows.
  • Intersect—Returns only those rows that are in both queried tables that do not have duplicate rows.
  • Except—Returns all rows found in the first queried table that do not display in the second queried table.

Notes: 

  • This topic focuses on information that may be unfamiliar to you. It does not include all step and field descriptions.

To add a union operator

  1. Select tables or views in the Query Builder and create a query.

  2. Click the arrow beside the Union operator on the toolbar and select an operator:


  

Related Topics

Build Queries Visually

Documentos relacionados

The document was helpful.

Selecione a classificação

I easily found the information I needed.

Selecione a classificação