DOCUMENT:Q119901 24-AUG-1999 [foxpro] TITLE :How to Use the UNION Clause in a FoxPro SELECT Statement PRODUCT :Microsoft FoxPro PROD/VER:2.00 2.5x 2.60 2.60a | 2.5x 2.60 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6, 2.6a - Microsoft Visual FoxPro for Windows, version 3.0 - Microsoft FoxPro for Windows, versions 2.5x, 2.6, 2.6a - Microsoft FoxPro for Macintosh, versions 2.5x, 2.6a - Microsoft FoxPro for UNIX, version 2.6 ------------------------------------------------------------------------------- SUMMARY ======= The UNION clause is used to join the results of multiple queries. However, the UNION clause is not supported by the Relational Query By Example (RQBE) tool because the RQBE tool does not support multiple or nested queries. Therefore, to perform queries of this type, the SELECT statement must be coded by hand. MORE INFORMATION ================ The UNION clause is a very important clause in the SELECT statement because it allows you to append the results of a query to the results of another query. The syntax is: UNION [ALL]