我的postgre查询确实存在问题。我正在生成一个报告来比较两个不同的数据库系统,并发现当我查询数据库时,postgre数据库上缺少一些数据。我检查了数据库,数据在那里,但没有显示出来。怎么了。我在SSRS和postgresql中使用了以下查询。它产生了不同的结果。我也删除了我的项目文件中的file.rdl.data。
`SELECT "public".aircraft.aircraft_id, "public".aircraft.register_number, to_char("public".flight.flight_date, 'YYYY-MM-DD') as flight_date , to_char("public".flight.health_start_date, 'hh24:mi') as health_start_date, to_char("public".flight.health_end_date, 'HH24:MI') as health_end_date, "public".flight.maintenance_flight_time
FROM "public".flight
INNER JOIN "public".aircraft
ON
"public".flight.aircraft_id = "public".aircraft.id
WHERE "public".flight.maintenance_flight_time > 0
ORDER BY flight_date`
答案 0 :(得分:0)
现在已经解决了。我没有做任何事情,只是将项目文件夹移动到另一个位置。它很奇怪。我相信删除项目文件夹中的filename.rdl.data也有帮助 -