我有一个带有两个选择子句的查询与 UNION 结合。我只想选择顶部的第一行。我怎么能用 Union 做到这一点?
Select Fault,OccurredOn From ATMStatus Where Ticket=189703 // This Will retrieve single record as the primary key is applied
Union
Select Fault,OccurredOn From ATMStatusHistory Where Resolved=0 AND Ticket=189703 Order By OccurredOn Desc