skip to Main Content

How to reduce query time in mysql?

I need to reduce query time from 1.3sec to 0.1sec. if I don't compare sum(amount) with sum(pd.amount_take) my query time is 0.03sec My Code sql: SELECT p.po_id, date_format(p.po_date,'%d-%m-%Y') AS po_date, p.branch_id, b.fullname as branch_send, p.branch_id2, bb.fullname as branch_recieve FROM tbl_po_branch…

VIEW QUESTION

PostgreSQL EXISTS and null value

For example use Test table with only positive id value. Query select 1 from public.Test where id = 0 return empty result. But when I use this query: select case when exists(select 1 from public.Test where id = 0) then…

VIEW QUESTION
Back To Top
Search