Consider table with schema
orders(user int, amount int, created datetime);
With one row = transaction, and I want to query the transaction data group by user
e.g.
User First_Order_Amount First_Order_DateTime Second_OrderAmount Second_Order_DateTime
1 21 2019-01-02 22 2019-01-03
2 13 2019-01-04 14 2019-01-05
SQL Fiddle: https://www.db-fiddle.com/f/v4gZUMFbuYorB27AH9yBKy/8