figuring out the code on this question: View called CustomerInfo (4 points): CustomerID The CustomerInfo view should
Fantastic news! We've Found the answer you've been seeking!
Question:
figuring out the code on this question:
- View called CustomerInfo (4 points):
- CustomerID
The CustomerInfo view should include these columns:
- FullName (concatenate FirstName, MiddleName, & LastName with spaces in between)
- Address (concatenate StreetAdddress, City, State, & ZipCode with spaces in between)
- PrimaryEmail (If customer has no email, show NULL for the customer's email address)
Hints:
- Start by SELECTing CustomerID and concatenating FullName & Address from Customers.
- JOIN into CustomerEmails.
- We need the view to include Customers who don't have emails, so the join type is important here.
- We also only want the Primary Email, so only include those rows from the CustomerEmails table.
- Please keep in mind, you can have more than 1 predicate in joins. The ON clause might be a good place to specify you only want Primary Email rows from the CustomerEmails table.
OUTPUT:
CoursHeroTranscribedText
Related Book For
Posted Date: