sync
This commit is contained in:
@@ -49,3 +49,20 @@ AND [ik].[ITK_key]=@phidx
|
||||
ORDER BY [ik].[ITK_key]
|
||||
;
|
||||
|
||||
return
|
||||
SELECT
|
||||
[i].[Item_ID]
|
||||
,[it].[ITTX_description]
|
||||
,[it].[ITTX_language]
|
||||
,[ik].[Item_key_ID]
|
||||
,[ik].[ITK_key]
|
||||
,[ik].[ITK_label_text]
|
||||
,[ik].[ITK_subsidiary]
|
||||
,[pi].*
|
||||
FROM [dbo].[Item] [i]
|
||||
JOIN [dbo].[Item_key] [ik] ON ik.[ITK_item] = i.[Item_ID]
|
||||
JOIN [dbo].[PH_item] [pi] ON [pi].[PHIT_item] = i.[Item_ID]
|
||||
LEFT JOIN [dbo].[Item_text] [it] ON it.[ITTX_item] = i.[Item_ID] AND [it].[ITTX_language] = 1
|
||||
WHERE [ik].[ITK_type] = 1 --phcode
|
||||
ORDER BY [ik].[ITK_key]
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user