Last active
February 2, 2016 21:55
-
-
Save Swader/40f2543e13a905600101 to your computer and use it in GitHub Desktop.
How would you rewrite this query to be MySQL 5.7 friendly? Currently fails due to new GROUP BY rules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * | |
from ebay_order_items | |
where | |
z_shipmentno is null | |
and ExternalTransactionID is not null | |
and orderstatus = 'Completed' | |
and timestamp > '2015-02-25' | |
group by ExternalTransactionID | |
order by timestamp desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hat tip to @feketegy for the solution