Define MSSQL

SQL Data Types

SQL Commands

SQL Create Database

SQL Create Table

SQL Insert Into

SQL Select Query

SQL Orderby

SQL Update Command

Truncate Delete Drop

SQL Select Top

SQL Constraints

SQL Alias

SQL Joins

SQL Union, intersect

SQL Select Into

SQL Insert Into Select

SQL Indexes

SQL Alter Table

SQL AutoIncrement

SQL View

SQL Date Functions

SQL NULL Value

SQL Aggregate Functions

SQL Group By

SQL Scalar functions

Stored Procedure

MS-SQL Joins

SQL joins are used to combine two or more tables, based on a common field between them. The most common type of join is:
• INNER JOIN: Returns all rows when there is at least one match in BOTH tables
• LEFT JOIN: Return all rows from the left table, and the matched rows from the right table
• RIGHT JOIN: Return all rows from the right table, and the matched rows from the left table
• FULL JOIN: Return all rows when there is a match in ONE of the tables

Select order.oid, person.name, order.orderdate from order inner join person on order.oid = person.id
sql inner join

Select person.name, order.oid from person left join order on person.id = order.oid order by person.name
sql left join

Select order.oid, person.name from order right join person on order.oid = person.id order by order.oid
sql right join

Select person.name, order.oid from person full outer join order on person.id = order.oid order by person.name sql full join