原表的话 就是select top 1000 / top 10000 * from [UTSTicket].[dbo].[xmlTicket]
视图语句:
SELECT distinct 很多字段名 都来自于 XT
FROM [UTSTicket].[dbo].[xmlTicket] XT left join LSEPropertyNameList LP
on XT.PropertyName=LP.PropertyName and LP.ID=1 left join GetTicketQueuelist Q
on XT.AssignedToTeamName=Q.Name
where LP.PropertyName is not null
or Q.Name is not null