Answered step by step
Verified Expert Solution
Link Copied!

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 24. 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
1
e.uxtererx
For the first assignment, you are going to use the above cuery as a cte namod ouctomer_namec and show all tha data. The results ahould look ike tha
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions