Änderungen in der Suche
This commit is contained in:
@@ -208,14 +208,21 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
||||
t.Ben8,
|
||||
t.Hersteller,
|
||||
t.Stat,
|
||||
t.VkTeil,
|
||||
txt.Text AS [Text],
|
||||
ts.PrsVk AS PrsVK,
|
||||
ts.Ersatz AS Ersatz
|
||||
FROM TEILE t WITH (NOLOCK)
|
||||
OUTER APPLY (
|
||||
SELECT TOP 1 MemoID
|
||||
FROM EKATSS WITH (NOLOCK)
|
||||
WHERE [Teil] = t.Teil
|
||||
ORDER BY (SELECT NULL)
|
||||
) ek
|
||||
OUTER APPLY (
|
||||
SELECT TOP 1 [Text]
|
||||
FROM TEXT WITH (NOLOCK)
|
||||
WHERE TextId = t.MemoID
|
||||
WHERE TextId = ek.MemoID
|
||||
ORDER BY LfdNr
|
||||
) txt
|
||||
OUTER APPLY (
|
||||
|
||||
Reference in New Issue
Block a user