Difference between group functions and single row functions.
Group Function Single Row FunctionA group function operates A single row functionon many rows returns one and result for one row.returns single result.Not allowed in Pl/sql procedural Allowed in Pl/SqlProcedural statementsstatements.eg SUM(),AVG,MIN,MAX etc eg UPPER,LOWER,CHR...
Difference between DECODE and TRANSLATE
DECODE is value by value TRANSLATE is character bycharacter replacement. replacement.Ex SELECT DECODE('ABC','A',1,'B',2,'ABC',3) eg SELECTfrom dual; o/p 3 TRANSLATE('ABCGH', 'ABCDEFGHIJ',1234567899)FROM DUAL; o/p 12378(DECODE command is used to bring IF,THEN,ELSE logic to SQL.It testsfor the IF values(s) and then aplies THEN value(s) when true, the ELSEvalue(s) if not.)
Difference between TRUNCATE and DELETE
TRUNCATE deletes much faster than DELETE
It is a DDL statement It is a DML statementIt is a one way trip,cannot One can RollbackROLLBACKDoesn't have selective features (where clause) HasDoesn't fire database triggers DoesIt requires disabling of referential Does not requireconstraints.