SQL JOIN - Sample data for joins


Volta a página anterior

Volta ao Menu Principal


Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF.- cad_cobol@hotmail.com

SQL - Sample data for joins

You can use the sample PARTS table and the PRODUCTS table to practice various types of joins.

The examples in these topics use the following two tables to show various types of joins:

         The PARTS table                         The PRODUCTS table
   PART      PROD#   SUPPLIER              PROD#     PRODUCT        PRICE
   =======   =====   ============          =====     ===========    =====
   WIRE      10      ACWF                  505       SCREWDRIVER    3.70
   OIL       160     WESTERN_CHEM          30        RELAY          7.55
   MAGNETS   10      BATEMAN               205       SAW            18.90
   PLASTIC   30      PLASTIK_CORP          10        GENERATOR      45.75
   BLADES    205     ACE_STEEL


© Copyright IBM Corp.