|
|
-
|
|
First Normal Form (INF):- A table is said to be in a First Normal Form (1NF)if it satisfy the following conditions:-
1)If the columns of the table only contain atomic values (Single, indivisible).
2)Primary key is defined for the table
3)All the columns ...
|
|
-
|
|
We often need to change the name of a column of a table to a new name. We can do this with the help of the Exec Sp_rename command.
The Syntax of the Sp_rename is given below:-
Exec sp_rename 'TableName.[OldColumnName]', '[NewColumnName]', 'Column'
...
|
|
-
|
|
Normalization :- Normalization can be defined as the process of organization the data to reduce the redundant table data to the minimum. This process is carried out by dividing the database into two or more than two tables and defining relationship be...
|
|
-
|
|
Second Normal Form (2NF) :-A table is said to be in its Second Normal Form if it satisfied the following conditions:-1) It satisfies the condition for the First Normal Form (1NF),2) It do not includes any partial dependencies where a column is depende...
|
|
-
|
|
1. What are the Sql Joins?Sql Joins are the way to get data from many tables based on some logical conditions. The different types of Joins in Sql Server are1) Inner join or Equi join
2) Self Join (it can be considered as the part of Inner join)
3) Outer...
|
|
-
|
|
1. What is the Normalization?Normalization:-Normalization can be defined as the process of organization the data to reduce the redundant table data to the minimum. This process is carried out by dividing the database into two or more than two tables and d...
|
|
-
|
|
1. What is the difference between the Union and Union All?
1) Union is used to select distinct data from the tables but Union All allows duplicate rows to be selected from the tables.
2) The second difference between Union and Union All can be given on the...
|
|
-
|
|
Both Having Clause and Where clause is used to filter the data coming from the Select statement, but still there are some differences between them. These difference are given below:-
To show the difference between the Where Clause and the Having clause we...
|
|
-
|
|
Group By:- Group By clauses is used to groups rows based on the distinct values of the specified columns.
The syntax of the Group by clause is:- Select column1, column2, column3, aggregate_function(expression ) From TableName Where (condition) ...
|
|
-
|
|
Third Normal Form (3NF) :- A table is said to be in the Third Normal form (3NF) if it satisfy the following conditions:-
1) It should be in the 2NF
2) It should not contain any transitive dependency which means that any non key column of the table should n...
|
|