You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the follow sql is not efficient when I check the data.
SELECTCount(*)
FROM (SELECTc.c_id,
c.c_d_id,
c.c_w_id,
c.c_balance c1,
(SELECTSum(ol_amount)
FROM orders,
order_line
WHERE ol_w_id = o_w_id
AND ol_d_id = o_d_id
AND ol_o_id = o_id
AND ol_delivery_d IS NOT NULLAND o_w_id =?
AND o_d_id =c.c_d_idAND o_c_id =c.c_id) sm,
(SELECTSum(h_amount)
FROM history
WHERE h_c_w_id =?
AND h_c_d_id =c.c_d_idAND h_c_id =c.c_id) smh
FROM customer c
WHEREc.c_w_id= ?) t
WHERE c1 <> sm - smh
The text was updated successfully, but these errors were encountered:
the follow sql is not efficient when I check the data.
The text was updated successfully, but these errors were encountered: