Week 46 - SQL & Query Techniques

We're going to give you something old and something new for this challenge (sadly not borrowed or blue).
We're taking a look at the new Array functions released in the last release and also looking into Recursive CTEs!

The challenge is a 2-parter ;
Part #1
Create a table that looks like this using purely snowflake-based functions:

Cart_numberContents
1[5,10,15,20]
2[8,9,10,11,12,13,14]

Part #2:

Use the following table to 'unpack' your cart :

Cart_numberContent_to_removeOrder_to_remove_in
1101
1152
153
1204
281
2142
2113
2124
295
2106
2137

your answer should create a table with the following columns :
- Cart_number
- Current_contents_of_cart
- content_last_removed

good luck unpacking!

Previous
Previous

Week 47 - Security & Governance

Next
Next

Week 45 - Snowpark & Python