home / fishbowl_archive

Showing report results below
📥 Export to Excel (CSV) ⚙ Show SQL

Sales Orders by Date Range

Show sales orders issued between two dates (YYYY-MM-DD).

Custom SQL query (hide)

SELECT
  so.num            AS "Order #",
  so.dateIssued     AS "Date Issued",
  customer.name     AS "Customer",
  so.customerPO     AS "Customer PO",
  so.statusId       AS "Status",
  so.totalPrice     AS "Total",
  so.salesman       AS "Salesman"
FROM so
JOIN customer ON so.customerId = customer.id
WHERE so.dateIssued BETWEEN :start_date AND :end_date
ORDER BY so.dateIssued DESC

Query parameters

Edit SQL

0 results

Powered by Datasette · Queries took 1.872ms