SQL Template
This commit is contained in:
@@ -21,11 +21,11 @@
|
|||||||
|
|
||||||
<!-- HERE BE DRAGONS
|
<!-- HERE BE DRAGONS
|
||||||
-- Ausgaben-Liste ab Stichtag für Export
|
-- Ausgaben-Liste ab Stichtag für Export
|
||||||
SELECT FORMATDATETIME(t.date,'dd.MM.yyyy'), c.name, t.amount, t.description
|
SELECT FORMATDATETIME(t.date,'dd.MM.yyyy') as Date, c.name, t.amount, t.description
|
||||||
FROM Transaction t
|
FROM Transaction t
|
||||||
JOIN Category c on (t.category_id = c.id)
|
JOIN Category c on (t.category_id = c.id)
|
||||||
WHERE t.account_id = 1 and t.date >= parsedatetime('2016-06-01','yyyy-MM-dd')
|
WHERE t.account_id = 1 and t.date >= parsedatetime('2016-06-01','yyyy-MM-dd')
|
||||||
ORDER BY t.date ASC
|
ORDER BY t.date ASC, t.last_change ASC
|
||||||
|
|
||||||
-- Kategorien-Liste für Account 1
|
-- Kategorien-Liste für Account 1
|
||||||
SELECT * FROM Category WHERE account_id=1 ORDER BY retired, position
|
SELECT * FROM Category WHERE account_id=1 ORDER BY retired, position
|
||||||
|
|||||||
Reference in New Issue
Block a user