I'm trying to make a composite key using some of SQLite's functions but the columns 'newdate' and 'newckey' and appearing blank when I run the query. Any advice?
SELECT *,
(repeat||date) as 'ckey',
(repeat||newdate) as 'newckey'
FROM (SELECT transactions.id,
transactions.repeat,
transactions.date,
datetime(transactions.date,'+'||repeattransactions.interval||' days')
AS 'newdate'
FROM transactions, repeattransactions
WHERE transactions.repeat = repeattransactions.id
)