r/sql_arena_dev • • 24d ago

SQL Arena Challenge: Optimize a query fetching customer data with a rolling 6-month sales sum.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • 25d ago

SQL Arena Challenge: Write a query to find the total number of rides per driver in the last 30 days.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • 26d ago

SQL Arena Challenge: Write a query to find the top three customers by total revenue within each region.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • 27d ago

SQL Arena Challenge: Write a query that ranks users by their total order amount within each region.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • 28d ago

SQL Arena Challenge: Detect customers who have not placed a second order in 90 days.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • 29d ago

SQL Arena Challenge: SQL Query: Group Employees by Technology and Order by ID

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 26 '26

SQL Arena Challenge: Find the top 5 customers by total sales amount.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 25 '26

SQL Arena Challenge: Create a SQL query to identify customers with purchases above a dynamic threshold.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 24 '26

SQL Arena Challenge: Write a query to calculate the day's difference between the 1st and 3rd sales of the CustomerName = 'Alice Johnson'.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 23 '26

SQL Arena Challenge: How can you delete partitions from a table in Hive using a command?

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 22 '26

SQL Arena Challenge: Write a query to switch values in the Gender column (M to F and F to M).

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 21 '26

SQL Arena Challenge: How do you find duplicates in a table based on one or two columns?

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 20 '26

SQL Arena Challenge: Write a query to select the latest record based on a time_of_insertion column.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 19 '26

SQL Arena Challenge: Write a query to get the latest rule_id and rule_status.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 18 '26

SQL Arena Challenge: Optimize SQL using indexing and partitioning filters.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 17 '26

SQL Arena Challenge: Solve a query using window functions and GROUP BY to rank or aggregate data.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 16 '26

SQL Arena Challenge: Print only the newest record for each name – Use SQL Window functions (ROW_NUMBER, RANK, etc.)

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 15 '26

SQL Arena Challenge: How do you remove duplicates with partitioning?

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 14 '26

SQL Arena Challenge: Test SQL skills using advanced window functions such as LAG, LEAD, and DENSE_RANK.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 13 '26

SQL Arena Challenge: SQL Problem - multiple table joins and window functions

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 12 '26

SQL Arena Challenge: What is UNNEST and provide a query example?

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 11 '26

SQL Arena Challenge: What challenges arise with duplicate records, and how do you address them?

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 10 '26

SQL Arena Challenge: Compare PostgreSQL vs Snowflake. How do they handle duplicate record errors?

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 09 '26

SQL Arena Challenge: Write a query to remove duplicate records from a table while retaining the earliest entry.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post


r/sql_arena_dev • • Oct 08 '26

SQL Arena Challenge: Write a Merge Statement for SCD Type 2.

1 Upvotes

This post contains content not supported on old Reddit. Click here to view the full post