Question: im not getting the correct output for the test case using the given code / * Enter your query below. Please append a semicolon

im not getting the correct output for the test case using the given code
/*
Enter your query below.
Please append a semicolon ";" at the end of the query
*/
SELECT
sender,
MIN(dt) AS sequence_start,
MAX(dt) AS sequence_end,
COUNT(*) AS transactions_count,
ROUND(SUM(amount),6) AS transactions_sum
FROM
transactions
GROUP BY
sender,
FLOOR(UNIX_TIMESTAMP(dt)/3600)
HAVING
transactions_count >=2
AND transactions_sum >=150
ORDER BY
sender ASC,
sequence_start ASC,
sequence_end ASC;
 im not getting the correct output for the test case using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!