1) Inner join or Equi join2) Self Join (it can be considered as the part of Inner join)
3) Outer Join
4) Cross join
Read more about Sql Joins
2.What are the Inner joins?
Inner joins:- This type of join is also known as the Equi join. This join returns all the rows from both tables where there is a match. This type of join can be used in the situation where we need to select only those rows which have values common in the columns which are specified in the ON clause.
Read more about Inner Joins
3. What are the Self Joins?
Self Joins:-Sometime we need to join a table to itself. This type of join is called Self join. In this Join, we need to open two copies of a same table in the memory. Since the table name is the same for both instances, we use the table aliases to make identical copies of the same table to be open in different memory locations.
Read more about Self Joins
4. What are the Outer Joins?
Outer Joins:-This type of join is needed when we need to select all the rows from the table on the left (or right or both) regardless of whether the other table has common values or not and it usually enter null values for the data which is missing.
- Left Outer Join
- Right Outer Join
- Full Outer Join
Read more about Outer Joins
5.What are the Cross Joins?
Cross Joins:-This join combines all the rows from the left table with every row from the right table. This type of join is needed when we need to select all the possible combinations of rows and columns from both the tables. This type of join is generally not preferred as it takes lot of time and gives a huge result that is not often useful.
Read more about Cross Joins
6. What are the Indexes in Sql server?
2) Non Clustered Index
Non Clustered Index:- In case of Non clustered index it create a sperate list of key values (or created a table of pointers) which points towards the location of the datain the data pages.