试图显示过去 30 天内开具发票的客户车辆。我试过这个:
select C.*, V.*
from CAR_OWNERSHIP O
join VEHICLE V on v.VEH_ID = O.VEH_ID
join CUSTOMER C on C.CUS_ID = O.CUS_ID
where exists (select null
from INVOICE I
where I.INV_ID = O.INV_ID and
I.INV_DATE >= date() - 30);
我收到“FROM 子句中的语法错误”