SQL

Use the UNION operator to generate a result set consisting oftwo columns from the Vendors table: VendorName and VendorState. Ifthe vendor is in California, the VendorState value should be “CA”,otherwise, the VendorState value should be “Outside CA”. Sort thefinal result set by VendorName.

The result set has 122 rows:

VendorName Vendor St. Abbey Office Furnishings CA

VendorName Vendor St. Abbey Office Furnishings CA 2 American Booksellers Assoc Outside CA 3 American Express CA 4 ASC Signs CA 5 Ascom Hasler Mailing Systems Outside CA Outside CA 6 AT&T 7 Aztek Label CA 8 Baker & Taylor Books Outside CA 9 Bertelsmann Industry Svcs. Inc CA BFI Industries CA 10 11 Bill Jones CA Show transcribed image text