到目前为止,我有这个:\
SELECT Bike_Number, MaintFaultDetails, MaintactionTaken, MaintfaultDate, MaintActionDate,
COUNT(*)
FROM MaintHistory
WHERE (MaintfaultDate + 5) < MaintactionTaken
SELECT Bike_Number, MaintFaultDetails, MaintactionTaken, MaintfaultDate, MaintActionDate,
COUNT(*)
FROM MaintHistory
我会添加/编辑什么,以便计算使用时间超过 5 天的自行车的百分比