skip to Main Content

MYSQL join query taking long to fetch even a single row

SELECT obo.id, obo.ready_notified, obo.view_notified, obo.order_name, CONVERT_TZ(obo.submitted_at, 'GMT', 'America/New_York') AS submitted_at, obo.order_counter, obo.is_pos, obo.occasion, obo.dine_in_table_number, obo.cashier_id, obo.terminal_name, obo.terminal_id, obo.payment_type, obo.total, obo.is_paid_by_split, obo.payment_type_raw, obo.is_submitted, obo.is_cancelled, obo.is_split_cancelled,obo.has_refund, obo.has_adjustment, obo.adjusted_total, obo.tip, obo.refund_total, obo.refund_pending, obo.order_hash, GROUP_CONCAT(oth.transaction_id) AS transaction_id FROM order_botorder obo LEFT JOIN order_ordertransactionhistory AS…

VIEW QUESTION

Mysql – find unique record from table

Consider the following table: Table Name: IN_OUT_RECORD Query: select DISTINCT * from IN_OUT_RECORD AD where (AD_USER_ID = 'ST1301220007') AND (AD.AD_DATE BETWEEN '2024-06-01 00:00:00' AND ('2024-06-12 23:59:00')); AD_ID AD_USER_ID AD_STATUS AD_DATE 11277 ST1301220007 IN 2024-06-01 09:10:40 11278 ST1301220007 OUT 2024-06-01 09:10:55…

VIEW QUESTION
Back To Top
Search