LPNL#77267 -- AiAi op cnt.getnieuwsteversiekey
svn path=/Customer/; revision=59705
This commit is contained in:
@@ -24,10 +24,11 @@ SET DEFINE OFF
|
||||
|
||||
DECLARE
|
||||
CURSOR c IS
|
||||
SELECT MAX (cnt_contract_key) cnt_contract_key
|
||||
SELECT MAX (cnt_contract_key) cnt_contract_key, cnt_contract_versie
|
||||
FROM cnt_contract
|
||||
WHERE cnt_contract_versie = '1'
|
||||
GROUP BY cnt_contract_nummer_intern
|
||||
WHERE cnt_contract_versie IS NOT NULL
|
||||
AND cnt_contract_verwijder IS NULL
|
||||
GROUP BY cnt_contract_nummer_intern, cnt_contract_versie
|
||||
HAVING COUNT (*) > 1;
|
||||
BEGIN
|
||||
FOR rec IN c
|
||||
|
||||
Reference in New Issue
Block a user