Kod: Tümünü seç
GROUP BY a, b, d;
Kod: Tümünü seç
GROUP BY a, b, d;
Kod: Tümünü seç
DepoNumarasi = 'Depo_' || Cast(New.depokodu As varchar(100));
execute statement
'Update Stok Set ' || DepoNumarasi || '= COALESCE(' || DepoNumarasi || ', ''0'') - new.miktari where stok_kodu = new.stok_kodu;'
Kod: Tümünü seç
AS
declare variable DepoNumarasi VarChar(100);
begin
DepoNumarasi = ' ';
DepoNumarasi = 'Depo_'+Cast(New.depokodu As varchar(100));
execute statement
'Update Stok Set ' || DepoNumarasi || '= COALESCE(' || DepoNumarasi || ',0) - new.miktari where stok_kodu = new.stok_kodu;'
end
Kod: Tümünü seç
for select ... from tablo where ... into :.... as cursor CR do
begin
if a = b then
begin
delete from tablo where current of CR;
s = s +1;
end
end
Kod: Tümünü seç
SELECT
EXTRACT(WEEK FROM TARIH) AS HAFTA_NO,
HATALAR, MAX(TUTARLAR)
FROM TABLO
GROUP BY 1,2