我试图宣读一份特定声明,将外地价值降至100个,并在最后添加......这样:
数百个自由会变成数百个 页: 1 这里是我所储存程序的选定说明。 这里的我 kind。 选择性的《东方木材协定》第(1)条是我想做的。
SELECT [TI].[TicketID]
, CAST([TI].[Subject] AS VARCHAR(100)) [Subject]
, [TA].[DueDate]
, CAST(
( SELECT
TOP(1) SUBSTRING(Description, 0, 100)
FROM Comment
WHERE TicketID = [TI].[TicketID]
ORDER BY CommentDate DESC
) AS VARCHAR(100)
) AS [Description]
FROM [dbo].[Ticket] [TI]
INNER JOIN [dbo].[Task] [TA]
ON [TI].[TicketID] = [TA].[TicketID]
INNER JOIN [dbo].[Task_Status] [TS]
ON [TA].[StatusID] = [TS].[StatusID]
WHERE [TI].[IsDeleted] = 0
AND [TS].[IsDeleted] = 0
AND [TS].[Status] = Open
AND [TI].[AssigneeView] IS NULL
AND [TI].[AssignedTo] = @AssignedTo