摘要: select msd.*,sc.* FROM MachinesShiftDetails as msd OUTER APPLY (select top 1 * from ShiftCalendars where MachineShiftDetailId = msd.Id) as sc 阅读全文
posted @ 2020-10-15 16:50 も不秃不秃 阅读(213) 评论(0) 推荐(0) 编辑
摘要: with TS as( SELECT ROW_NUMBER() over (PARTITION By code order by code) as rowid,* FROM StateInfos ) select [Hexcode] ,[DisplayName] ,[Code] ,[Original 阅读全文
posted @ 2020-10-15 16:10 も不秃不秃 阅读(285) 评论(0) 推荐(0) 编辑