| Aggregate (cost=2118.01..2118.02 rows=1 width=8) |
| -> Sort (cost=1990.60..2011.83 rows=8494 width=301) |
| Sort Key: (CASE WHEN ((sub.verify_status = 0) OR (sub.stop_verify_status = 0) OR (sub.cancel_verify_status = 0)) THEN 1 ELSE 2 END), sub.created_at DESC |
| -> Result (cost=0.00..1436.27 rows=8494 width=301) |
| -> Append (cost=0.00..1287.62 rows=8494 width=20) |
| -> Subquery Scan on sub (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 2" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=309) |
| Group Key: id, status, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=38) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 3" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 4" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 5" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 6" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 7" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 8" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=309) |
| Group Key: id, status, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=38) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 9" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 10" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 11" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 12" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 13" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 14" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 15" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 16" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 17" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 18" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 19" (cost=990.31..1286.62 rows=8466 width=20) |
| -> HashAggregate (cost=990.31..1201.96 rows=8466 width=305) |
| Group Key: r.id, rvr.status, rsvr.status |
| -> Hash Left Join (cost=386.35..926.81 rows=8466 width=30) |
| Hash Cond: (r.id = rsvr.erp_cash_cost_ticket_id) |
| -> Hash Left Join (cost=385.19..893.89 rows=8466 width=26) |
| Hash Cond: (r.id = rvr.erp_cash_cost_ticket_id) |
| -> Seq Scan on tbl_erp_cash_cost_tickets r (cost=0.00..444.86 rows=8466 width=22) |
| Filter: (status <> 0) |
| -> Hash (cost=384.75..384.75 rows=35 width=8) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels rvr (cost=0.00..384.75 rows=35 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.15..1.15 rows=1 width=8) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_stop_verify_rels rsvr (cost=0.00..1.15 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 20" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 21" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 22" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 23" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=309) |
| Group Key: id, status, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=38) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 24" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 25" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 26" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 27" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 28" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |
| -> Subquery Scan on "*SELECT* 29" (cost=0.00..0.04 rows=1 width=20) |
| -> HashAggregate (cost=0.00..0.03 rows=1 width=305) |
| Group Key: id, status, status |
| -> Result (cost=0.00..0.00 rows=0 width=30) |
| One-Time Filter: false |