SELECT p."name", SUM(s."qty_ordered") AS "Quantity Ordered" FROM "SalesOrderItems" s LEFT OUTER JOIN "Products" AS p ON p."product_id" = s."product_id" WHERE strftime('%Y', s."created_at") = '2015' GROUP BY p."product_id" ORDER BY 2 DESC
Skyvia Query allows you to run SQL queries against databases and cloud applications from web browser. Access and manage your data from anywhere, build reports, arrange your data in the most informative way and simplify your decision-making process easily!