Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercises A common table expresaion ( CTE ) allows you to simplify your SOL. CTEs only work for the current quey, compared to a vew
Exercises
A common table expresaion CTE allows you to simplify your SOL. CTEs only work for the current quey, compared to a vew enat is saved as a database object and can be used on ies owh or joined with another table. Consider the SOL state that we wrote in our SOL Rovisw Lsaignment, exarcise If you remember, the resuls wore not in alphabetic order becsuse Orade sorts lower case letters betore upper case lattors. That is why both won Sydo and de Niro were showing belore Young when sorted in cescending onder. Obviously Young should have been first up in descencing order.
In the first coupie of exereses, wevl take a look at how wo can x that waing a CTE or Viow. There are meny drtenent ways to sccomolsh pis tase, im going to show you a simple way of cong it The easiost. but arguably not the fastest or best, is by croateng a tecond calculatod fiold that conwarts the lase name to all uppercase. Hore is a sampie SOL coco to do that
euxtererx
For the first assignment, you are going to use the above cuery as a cte namod ouctomernamec and show all tha data. The results ahould look ike tha
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