获取自己的 SQL 服务器

SQL 语句

结果

         customer_name         |   sum
------------------------------+---------
 Lehmanns Marktstand          | 1088.29
 Rattlesnake Canyon Grocery   | 2399.99
 Hungry Owl All-Night Grocers | 1837.95
 Frankenversand               | 1067.41
 Mere Paillarde               | 1072.50
 HILARION-Abastos             | 1001.47
 Ernst Handel                 | 2891.35
 Bon app                      | 1122.55
 Great Lakes Food Market      | 1091.54
 Save-a-lot Markets           | 2788.48
 Queen Cozinha                | 1166.59
 Koniglich Essen              | 1290.48
 QUICK-Stop                   | 2842.45
 Hanari Carnes                | 1423.00
 Folk och fe HB               | 1098.58
 White Clover Markets         | 1314.93
 Berglunds snabbkoep          | 1507.48
(17 rows)
演示数据库

categories
customers
products
orders
order_details
testproducts