DBMSlabtask 28-03-2025
DBMSlabtask 28-03-2025
do $$
declare rec_row record;
begin
for rec_row in
select * from Transactions
where Tdate::DATE=current_date
loop
raise notice 'Transaction being processed: TransactionID:
%, AccountID: %, Amount: %, Type: %,', rec_row.TransactionID,
rec_row.AccountID, rec_row.Amount, rec_row.Type;
end loop;
end $$;
Result: