Sektion 3. Kapitel 5
single
Challenge: Optimizing Sales Report Queries
Stryg for at vise menuen
Opgave
Swipe to start coding
Rewrite the provided sales report query using Common Table Expressions (CTEs) and apply at least one optimization technique discussed in the theory. The query should generate a detailed sales report, joining transaction, customer, and product information, and present the data in an organized manner.
- Use CTEs to modularize the query for better readability and performance.
- Apply at least one optimization technique, such as pre-aggregation, column selection, or filtering within CTEs.
- Ensure the final output includes transaction details, customer information, and product details, ordered by transaction date, last name, and first name.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 5
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat