Question
Write a query that returns all employees - 19 rows, using the isEmployee field equal to 1. Return the personID, their logon name, phone number,
Write a query that returns all employees - 19 rows, using the isEmployee field equal to 1. Return the personID, their logon name, phone number, and name. For the name, you need to rearrange the name stored in the FullName column to be in the format: last, first (last name a comma, a space, then the first name) For the phone number, remove all the non-numeric characters and reformat it to look like: 801.112.2345 For the logon name, concat. the person id to the end of the logon, seperated by a space, then a dash, then a space (hudsono@wideworldimporters.com - 3) Sort the final results based on your new name field, a to z */
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started