Question: Q 4 ( 1 0 points ) : Write a SELECT statement that returns three columns: vendor _ id The vendor _ id column from
Q points: Write a SELECT statement that returns three columns:
vendorid The vendorid column from the Vendors table
vendorname The vendorname column from the Vendors table
contactname A concatenation of the vendorcontactfirstname
and vendorcontactlastname columns with a space
between
Return one row for each vendor whose contact has the same last name as another vendor's
contact. This should return rows. Hint: Use a selfjoin to check that the vendorid columns
aren't equal but the vendorcontactlastname columns are equal. Sort the result set by
vendorcontactlastname.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
