What Are The Different Types of Joins? What Is The Difference Between Them? Inner Join
What Are The Different Types of Joins? What Is The Difference Between Them? Inner Join
Isolation
Modifications made by concurrent transactions must be isolated
from the
modifications made by any other concurrent transactions. A
transaction either see
data in the state it was before another concurrent transaction modified
it, or it sees
the data after the second transaction has completed, but it does not
see an
intermediate state. This is referred to as serializability because it
results in the
ability to reload the starting data and replay a series of transactions to
end up with
the data in the same state it was in after the original transactions were
performed.
Durability
After a transaction has completed, its effects are permanently in
place in the system.
The modifications persist even in the event of a system failure.
What is RDBMS?
Relational Data Base Management Systems (RDBMS) are database
management systems that maintain
data records and indices in tables. Relationships may be created and
maintained across and among the
data and tables. In a relational database, relationships between data
items are expressed by means of
tables.
What is normalization?
Database normalization is a data design and organization process
applied to data structures based on
rules that help build relational databases. In relational database
design, the process of organizing data
to minimize redundancy. Normalization usually involves dividing a
database into two or more tables and
defining relationships between the tables. The objective is to isolate
data so that additions, deletions,
and modifications of a field can be made in just one table and then
propagated through the rest of the
database via the defined relationships.
What is Stored Procedure?
A stored procedure is a named group of SQL statements that have
been previously created and stored
in the server database. Stored procedures accept input parameters so
that a single procedure can be
used over the network by several clients using different input data.
And when the procedure is
modified, all clients automatically get the new version. Stored
procedures reduce network traffic and
improve performance. Stored procedures can be used to help ensure
the integrity of the database.
e.g. sp_helpdb, sp_renamedb, sp_depends etc.
What is Trigger?
A trigger is a SQL procedure that initiates an action when an event
(INSERT, DELETE or UPDATE)
keys prevent actions that would leave rows with foreign key values
when there are no primary keys
with that value. The foreign key constraints are used to enforce
referential integrity.
What is Cross Join?
A cross join that does not have a WHERE clause produces the
Cartesian product of the tables involved
in the join. The size of a Cartesian product result set is the number of
rows in the first table multiplied
by the number of rows in the second table. The common example is
when company wants to combine
each product with a pricing table to analyze each product at each
price.
advantages of Stored Procedure.
Stored procedure can reduced network traffic and latency, boosting
application performance.
Stored procedure execution plans can be reused, staying cached in
SQL Server's memory,
reducing server overhead.
Stored procedures help promote code reuse.
Stored procedures can encapsulate logic. You can change stored
procedure code without
affecting clients.
Stored procedures provide better security to your data.