我有 1 个表,我用 InfiniDB 尝试了这个查询:
SELECT sum(montantTTC) FROM ticket
WHERE year(creation_iso) IN (SELECT distinct year(creation_iso) as annee
FROM ticket ORDER BY annee);
但我有一个错误:Erreur SQL (138): IDB-1000: 'ticket' and 'sub-query' are not joined.
为什么 ?我不明白...
谢谢你。