好的,所以我试图在本月之前的一个月内返回所有信息。我在格式和代码方面有点挣扎。这是我的尝试。如果需要,我可以提供表格结构
SELECT hd.Holiday_desc,
soh.Site_Name,
FROM holiday_details hd
WHERE TRUNC(LAST_DAY(SYSDATE), 'MM' - 1) = TRUNC(hdep.Holiday_Departure, 'MM')
INNER JOIN holiday_departure hdep
ON hd.holiday_code = hdep.holiday_code
Inner join site_visited sv on hd.Holiday_Code = sv.Holiday_code
inner join site_of_holiday soh on sv.Site_code = soh.Site_code