on 2021 Dec 16 11:06 AM
We need to get the number of quotes which are in status 'preparing" on a specific domain ? How should we proceed to get it ?
Request clarification before answering.
This one is in tags
<*LIST(
-- To get the lis
SELECT CONCAT(FORMAT(c.USERID, '0000'), FORMAT(c.CART_ID,'0000'), '; ', osd.ORDER_STATUS_NAME, '; ', c.DATE_CREATED)
FROM CART c
INNER JOIN ORDER_STATUS_DEFN osd ON osd.ORDER_STATUS_ID = c.ORDER_STATUS
WHERE osd.ORDER_STATUS_NAME = 'Preparing'
ORDER BY DATE_CREATED DESC
)*>
<*TABLE(
-- To get the count
SELECT COUNT(*) FROM CART c
INNER JOIN ORDER_STATUS_DEFN osd ON osd.ORDER_STATUS_ID = c.ORDER_STATUS
WHERE osd.ORDER_STATUS_NAME = 'Preparing'
)*>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.