Last active
November 11, 2021 08:44
-
-
Save GreatPotato/5b3510104f078018e1892d6a8701ca35 to your computer and use it in GitHub Desktop.
Create a view for quotes in LS (excludes all main carts)
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
CREATE VIEW fiftydigital_quotes AS | |
SELECT DISTINCT concat(cart_name, '_', customer_id) as 'id', cart_name, customer_id | |
FROM shop_customer_cart_items | |
WHERE cart_name != 'main' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment