Hang on...
Merging Customer and Supplier Data with Table Origin Column
You have access to two tables: customers
and suppliers
. Your objective is to:
- Select the columns
city
,company_name
, andcontact_name
from both tables. - Merge the results together.
- Add an additional column in the result set to specify the origin of each record. This column should contain either 'customers' or 'suppliers' to indicate from which table the record came. Make sure name of this column is relationship
Concepts to Consider
- Think about how you can merge results from two separate queries.
- Consider how to add static values to a result set for classification purposes.
Ensure your final query is structured and formatted correctly. Once you believe you have the correct solution, submit your query for validation. Best of luck!
Adding your container request
Getting your dedicated container
Connecting to your container
Setting up your editor
Finalizing your playground
TerminalEditorBrowser