Advertisement
nima1981

Untitled

Nov 5th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. SELECT i.number, i.created_at, ii.description, (ii.quantity*ii.price) AS Total FROM invoice_items ii
  2. INNER JOIN invoices i ON (i.id=ii.invoice_id)
  3. WHERE i.client_id=57 AND i.created_at >= '2015-09-01'
  4. ORDER BY i.created_at ASC;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement