7 lines
400 B
Plaintext
7 lines
400 B
Plaintext
|
|
CREATE PROCEDURE [dbo].[sp_TestSetupsWithSensorsGet]
|
||
|
|
@List as dbo.IDList READONLY
|
||
|
|
AS
|
||
|
|
BEGIN
|
||
|
|
SET NOCOUNT ON;
|
||
|
|
SELECT D.TestSetupId, D.TestSetupName from [Channels] as A INNER JOIN [Groups] AS B on A.GroupId=B.Id INNER JOIN [TestSetupGroups] AS C on B.Id=C.GroupId INNER JOIN TestSetups as D ON C.TestSetupId=D.TestSetupId WHERE A.[SensorId] in (SELECT [ID] FROM @List) AND B.Embedded=1
|
||
|
|
END;
|