Create Procedure AS Select From Where AND: 'London' 'WA1 1DP'
Create Procedure AS Select From Where AND: 'London' 'WA1 1DP'
Create Procedure AS Select From Where AND: 'London' 'WA1 1DP'
2.
Stored Procedure With Multiple Parameters
Setting up multiple parameters is very easy. Just list each parameter and
the data type separated by a comma as shown below.
Example
CREATE PROCEDURE SelectAllCustomers @City nvarchar(30),
@PostalCode nvarchar(10)
AS
SELECT * FROM Customers WHERE City = @City AND PostalCode
= @PostalCode
GO;
Example
EXEC SelectAllCustomers @City = 'London', @PostalCode = 'WA1
1DP';
3.
SQL UNIQUE Constraint
INNER JOIN: The INNER JOIN keyword selects all rows from both the
tables as long as the condition satisfies
LEFT JOIN: This join returns all the rows of the table on the left side of
the join and matching rows for the table on the right side of join
FULL JOIN: FULL JOIN creates the result-set by combining result of
both LEFT JOIN and RIGHT JOIN. The result-set will contain all the
rows from both the tables. The rows for which there is no matching, the
result-set will contain NULL values.
KEY DIFFERENCE:
As per RDBMS prospective, Key (a.k.a Candidate Key) is a value or set of values
that uniquely identifies an entity.
For a DB-Table, there are so many keys are exist and might be eligible for Primary
Key. So that all keys, primary key, unique key, etc are collectively called as
Candidate Key. However, DBA selected a key from candidate key for searching
records is called Primary key.