For example, if I have the following tables.Vendors table:VendorID VendorName--------- ------------------------------V0001 Microsoft CorporationV0002 Oracle CorporationV0003 MySQL ABV0004 PremiumSoft CyberTech Ltd.V0005 FastReport Inc.V0006 CoreLabV0007 Mentat Technologies
Products table:ProductID VendorID Description---------- --------- -----------------------------------------SDB0001 V0001 MS SQL Server Database 2005SDB0002 V0002 Oracle Database 10g EnterpriseSDB0003 V0003 MySQL 5.0 Enterprise EditionSDBA0001 V0004 Navicat For MySQL AdministrationSDBA0002 V0007 Dreamcoder 4.1 For MySQL EnterpriseSDBA0003 V0007 Dreamcoder 4.1 For MySQL ProfesionalSDBA0004 V0007 Dreamcoder 4.1 For MS SQL Server Database
How could I return the following?VendorID VendorName ProductID Description--------- ------------------------------ ---------- -----------------------------------------V0001 Microsoft Corporation SDB0001 MS SQL Server Database 2005V0002 Oracle Corporation SDB0002 Oracle Database 10g EnterpriseV0003 MySQL AB SDB0003 MySQL 5.0 Enterprise EditionV0004 PremiumSoft CyberTech Ltd. SDBA0001 Navicat For MySQL AdministrationV0005 FastReport Inc. [NULL] [NULL]V0006 CoreLab [NULL] [NULL]V0007 Mentat Technologies SDBA0002 Dreamcoder 4.1 For MySQL EnterpriseV0007 Mentat Technologies SDBA0003 Dreamcoder 4.1 For MySQL ProfesionalV0007 Mentat Technologies SDBA0004 Dreamcoder 4.1 For MS SQL Server Database