我有这个 SQL 请求,它应该将两个子查询的结果与 合并INNER JOIN
,但我得到一个错误,我不知道为什么。请问你能帮帮我吗?
SELECT
dateT, PC.id_serie
FROM (
SELECT id_serie, MIN(dateF) as dateF FROM fixings GROUP BY id_serie
) AS PC1
INNER JOIN
(
SELECT target_calendar.dateT, series.id_serie FROM target_calendar, series LEFT JOIN fixings ON (PC.DateT=fixings.dateF) AND (PC.id_serie = fixings.id_serie)
) AS PC
ON
PC1.dateF = PC.dateT
AND
(((pc1.[dateF]) Is Null))
AND
DateT <= Date();
错误:由别名“DateF”引起的循环引用