Bdms Questions. 1
Bdms Questions. 1
Bdms Questions. 1
AtHug9u naPL
PLQL blo ck titUthR whrth ra fttud
AmL stahmunh rke tryet, Neluhe, Updah n e
whin
databan fabl ) xecutd on a
CREATE OR REPLRE
TRIGGE rgge. nam
BEFORE/nFTER)
[INSERT /vPDArt /BELETEJ
ON tabe name (FOR ACH
[WREN ConstiOnNT sThtemENT (FOR EAtH ROLO
PL 8QL block
4.6 FUNCTIONS (w-16,S-17, S-18)
A function is a logically grouped set of SQL and PL/SQL statements that perform a specific task.
A function is a named pl/sql code block that have been compiled and stored in one of the oracle
engines's system tables.
4.5 PROCEDURES (S-17, S-18
A stored procedure or in simple a proc is a named PL/SQL block which performs one or more specific
task)This is similarto a procedure in other programming languages.
GROUP BY Clause: (S-16, S-18)
GROUP BY clause was added to SQL because aggregate functions, (like SUM)return the aggregate of
allcolumn values every time they are called, and without the GROUP BY functionit was impossible
tofind the sum for each individual group of column values.
Thesyntax for the GROUP BY function is:
SELECT Ccolumn, SUM (column) FROM table GROUP BY column;
.(subquery or Inner query or Nested query is a query in a query
Subquery is usually added in the WHERE Clause of the SQL statement.
thefollowing SQL statements along with the comparision operators like Subqueries can be used with
There are a few rules that subqueries must follow: etc.
=, <, >,>=, <=