diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-12-08 23:35:33 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-12-08 23:35:33 +0100 |
commit | 79b7424746c7636cd23a7869169431afa6941b06 (patch) | |
tree | 820a40d120a62e6f5b9b081b40e3e266d4c7a323 /sql/views.sql | |
parent | b57876577516c00693ab36970a746f986bc37b66 (diff) | |
download | serial-barcode-scanner-79b7424746c7636cd23a7869169431afa6941b06.tar.bz2 |
rename table sells -> sales
Diffstat (limited to 'sql/views.sql')
-rw-r--r-- | sql/views.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/views.sql b/sql/views.sql index 6ab5ef2..8edfa9f 100644 --- a/sql/views.sql +++ b/sql/views.sql @@ -17,6 +17,6 @@ CREATE VIEW IF NOT EXISTS invoice AS WHERE product = id AND valid_from <= timestamp ORDER BY valid_from DESC LIMIT 1) END AS price - FROM sells INNER JOIN products ON sells.product = products.id + FROM sales INNER JOIN products ON sales.product = products.id ORDER BY timestamp; COMMIT; |