Write the following as MySQL query: Find the employee ID, first and last name, and salary for each employee whose salary is more than $20,000 or who works in the shipping department. Use the UNION set operator.
Write the following as MySQL query: Find the employee ID, first and last name, and salary for each employee whose salary is more than $20,000 or who works in the shipping department. Use the UNION set operator.
Chapter8: Sql Functions And Procedures
Section: Chapter Questions
Problem 2SCG
Related questions
Question
Write the following as MySQL query:
Find the employee ID, first and last name, and salary for each employee whose salary is
more than $20,000 or who works in the shipping department. Use the UNION set operator.
List the country ID, country name, city, and state/province. Be sure all country names are
included in the result, regardless of whether there is no matching city and state/province. You
have to use an outer join.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage