You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
3.6 KiB
48 lines
3.6 KiB
USE [Vertragsverwaltung_20160404]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Applikation_IKV_Test_SelectAll_bottomtable] Script Date: 02.12.2016 09:08:54 ******/
|
|
DROP PROCEDURE [dbo].[pr_Applikation_IKV_Test_SelectAll_bottomtable]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[pr_Applikation_IKV_Test_SelectAll_bottomtable] Script Date: 02.12.2016 09:08:54 ******/
|
|
SET ANSI_NULLS OFF
|
|
GO
|
|
SET QUOTED_IDENTIFIER OFF
|
|
GO
|
|
|
|
|
|
|
|
|
|
Create proc [dbo].[pr_Applikation_IKV_Test_SelectAll_bottomtable]
|
|
---------------------------------------------------------------------------------
|
|
-- Stored procedure that will select all rows from the table 'Applikationkontakt'
|
|
-- Returns: @iErrorCode int
|
|
---------------------------------------------------------------------------------
|
|
@iErrorCode int OUTPUT,
|
|
@Fokus int,
|
|
@KeyValue int,
|
|
@mitarbeiternr int
|
|
AS
|
|
SET NOCOUNT ON
|
|
-- SELECT all rows from the table.
|
|
|
|
|
|
SELECT dbo.Applikation_IKV_Test.Applikation_IKV_TestNr, dbo.Applikation_IKV_Test.ApplikationNr, dbo.Applikation_IKV_Test.Jahr, dbo.Applikation_IKV_Test.Geplant,
|
|
dbo.Applikation_IKV_Test.Durchgeführt, dbo.Applikation_IKV_Test.Applikation_IKV_TestResultatNr, dbo.Applikation_IKV_Test.Bemerkung,
|
|
dbo.Applikation_IKV_Test.Aktiv, dbo.Applikation_IKV_Test.Erstellt_am, dbo.Applikation_IKV_Test.Mutiert_am, dbo.Applikation_IKV_Test.Mutierer,
|
|
dbo.Applikation_IKV_TestResultat.Bezeichnung AS Resultat
|
|
FROM dbo.Applikation_IKV_Test INNER JOIN
|
|
dbo.Applikation_IKV_TestResultat ON dbo.Applikation_IKV_Test.Applikation_IKV_TestResultatNr = dbo.Applikation_IKV_TestResultat.IKVTestResultatnr
|
|
WHERE dbo.Applikation_IKV_Test.ApplikationNr = @keyvalue
|
|
ORDER BY
|
|
[Jahr] desc
|
|
SELECT @iErrorCode=@@ERROR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GO
|