CBSE Book Class 12 Informatics Practices Transactions Procedures and Functions

Official NCERT Book for Class 12 Informatics Practices: Transactions Procedures And Functions

Access the official NCERT textbook for Class 12 Informatics Practices, updated for the 2026-27 academic session. This digital resource provides the foundational knowledge required for exam success and conceptual clarity.

Chapter-wise Study Material: Transactions Procedures And Functions

View or download the dedicated Transactions Procedures And Functions resource below. This chapter-by-chapter structuring ensures easy navigation for daily study routines. For comprehensive exam preparation, pair this reading with our verified NCERT Solutions.

Chapter – 4

Transactions, Procedures and

Functions

(Informatics Practices)

A transaction is a sequence of SQL statements to accomplish a single task.

Example: Transfer funds between bank accounts.

-- assume source_acct, dest_acct, amount,

-- and source_balance are defined

BEGIN

    SELECT balance INTO source_balance

    FROM Accounts WHERE acct# = source_acct;

    -- check whether sufficient funds

   UPDATE Accounts SET balance = balance-amount

    WHERE acct# = source_acct;

    UPDATE Accounts SET balance = balance+amount

    WHERE acct# = dest_acct;

    COMMIT;

    END;

Oracle treats such a sequence as an indivisible unit, to ensure that database is left in a consistent state. PL/SQL gives fine-grained control over progress of transaction. This also gives responsibility to ensure that transaction completes ok. The first SQL statement begins a transaction. COMMIT forces any changes made to be written to database. ROLLBACK restores database to state at start of transaction. Both COMMIT and ROLLBACK finish the transaction. Can achieve finer-grained rollback via savepoints:

BEGIN

...

UPDATE Employees SET ... WHERE id# = emp_id;

DELETE FROM Employees WHERE ...

...

SAVEPOINT more_changes;

...

-- make changes to Employees

-- possibly raise some_exception

...

COMMIT;

EXCEPTION

WHEN some_exception THEN ROLLBACK TO more_changes;

END;

Locking with Cursors

When accessing tables via a cursor, normally the table is locked. PL/SQL provides a mechanism to lock individual rows instead:

DECLARE

CURSOR managers IS

SELECT emp#, job, salary

FROM Employees WHERE job = 'Manager'

FOR UPDATE OF salary;

BEGIN

FOR e IN managers LOOP

UPDATE Employees SET salary = new_sal

WHERE CURRENT OF managers;

COMMIT;

END LOOP;

END;

PL/SQL provides packaging mechanism for small blocks of procedural code:

PROCEDURE ProcName(ArgList) IS

declarations;

BEGIN

statements;

EXCEPTION handlers;

END ProcName;

FUNCTION FuncName(ArgList) RETURN Type IS

declarations;

BEGIN

statements; -- including RETURN Expr;

EXCEPTION handlers;

END FuncName;


Please refer to attached file for CBSE Classs 12 Informatics Practices Transactions Procedures and Functions

Official NCERT Textbook PDF: Class 12 Informatics Practices Transactions Procedures And Functions

Chapter Textbook PDF for Class 12 Informatics Practices

Download the certified NCERT Textbook for Class 12 Informatics Practices Transactions Procedures And Functions. Educational authorities and instructors recommend this e-textbook as the foundational reference for all terminal tests and school assessments.

Digital E-Book Collection for Class 12 Informatics Practices

Browse our comprehensive suite of NCERT books in English Medium designed for Class 12 students, offering clear conceptual breakdowns and concluding practice problems.

Complete Your Chapter Preparation

Elevate your study routine by reviewing our comprehensive NCERT Solutions and revision notes available on our platform free of charge.

FAQs

Where can I download the latest CBSE Book Class 12 Informatics Practices Transactions Procedures and Functions in PDF for 2026-27?

You can download the latest, teacher-verified PDF for CBSE Book Class 12 Informatics Practices Transactions Procedures and Functions for free on StudiesToday.com. These digital editions are updated as per 2026-27 session and are optimized for mobile reading.

Does this Informatics Practices book follow the latest NCERT rationalized syllabus?

Yes, our collection of Class 12 Informatics Practices NCERT books follow the 2026 rationalization guidelines. All deleted chapters have been removed and has latest content for you to study.

Why is it better to download CBSE Book Class 12 Informatics Practices Transactions Procedures and Functions chapter-wise?

Downloading chapter-wise PDFs for Class 12 Informatics Practices allows for faster access, saves storage space, and makes it easier to focus in 2026 on specific topics during revision.

Are these NCERT books for Class 12 Informatics Practices sufficient for scoring 100%?

NCERT books are the main source for NCERT exams. By reading CBSE Book Class 12 Informatics Practices Transactions Procedures and Functions line-by-line and practicing its questions, students build strong understanding to get full marks in Informatics Practices.