Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Write your MySQL query statement below
# #Hard #2026_05_08_Time_262_ms_(63.61%)_Space_0.0_MB_(100.00%)
# #Hard #Database #2026_05_08_Time_262_ms_(63.61%)_Space_0.0_MB_(100.00%)
-- Find the most common course-to-next-course transitions
-- among engaged users (>=5 courses, avg rating >= 4)
SELECT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Write your MySQL query statement below
# #Easy #2026_05_22_Time_286_ms_(70.33%)_Space_0.0_MB_(100.00%)
# #Easy #Database #2026_05_22_Time_286_ms_(70.33%)_Space_0.0_MB_(100.00%)
SELECT user_id, COUNT(prompt) as prompt_count, ROUND(AVG(tokens),2) as avg_tokens
FROM prompts
GROUP BY user_id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Write your MySQL query statement below
# #Medium #2026_06_09_Time_290_ms_(87.69%)_Space_0.0_MB_(100.00%)
# #Medium #Database #2026_06_09_Time_290_ms_(87.69%)_Space_0.0_MB_(100.00%)
WITH user_selection AS
(SELECT
user_id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Write your MySQL query statement below
# #Hard #2026_07_21_Time_367_ms_(16.77%)_Space_0.0_MB_(100.00%)
# #Hard #Database #2026_07_21_Time_367_ms_(16.77%)_Space_0.0_MB_(100.00%)
WITH distinct_activity AS (
SELECT DISTINCT
user_id,
Expand Down
Loading