Professional Documents
Culture Documents
Logical table based on one or more tables. Asociated with a group of rows. reduced NETWORK TRAFFCI AND LATENCY
Output as new table. Can process row individualy. BOOSTING application perfomance
ENCAPSULE LOGIC
Trigger CODE REUSE
Database Object encapsule and define actions changing without affecting Client
in response INSERT-DELETE-UPDATE operations BETTER SECURITY to your data
exeptions
index
Runtime error or warning. help speed up searching in the database.
we have TRY.. CATCH blocks. RAISEERROR helps in minimizing data comparisons.
statements in TRY block ..is an error the control jump to CATCH blocks improves the performance of the retrieval of the data from the database.
RAISEERROR is the command used to generate
UNIQUE CONSTRAINT
ensure that all the values in a column are different
HAVING Union
can be used ONLY WITH SELECT combine result of two or more queries into a distinct single result
used in a GROUP BY clause ALL return all records, not remove duplicated
behaves WHERE clause
SUBSTR
JOIN return specific portion of string in a given string
combine rows from two or more tables based on a related between them.
@@SPID
returns the session ID of the current user process.
functions
sequence of the statements which accept inputs, process the inputs to perform some specific task and then provide the outputs.
Magic Tables
During DML operations like Insert, Delete, and Update, SQL Server creates magic tables to hold the values during the DML operations.