Yearly Archives: 2010

Renaming a column in Sql Server

 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]’, … Continue reading

Posted in SQL Basic Concepts, SQL Server | Tagged , | 13 Comments

Thanks for supporting this blog and make it successful

Hi friends Thank you very much for supporting this blog. It really give me lots of encouragement to share my knowledge with my friends. Due to some other high priorities, I was not able to publish any articles on this … Continue reading

Posted in Miscellaneous | Tagged | 69 Comments

Interview Questions on Sql Server -Part 3

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 are 1) Inner join or Equi join 2) Self Join … Continue reading

Posted in Interview Questions | Tagged | 22 Comments

Interview Questions On Sql Server -Part 2

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 … Continue reading

Posted in Interview Questions | Tagged | 27 Comments

Interview Questions on sql server -Part-1

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 … Continue reading

Posted in Interview Questions | Tagged | 24 Comments

Group by…..Having Clause

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 … Continue reading

Posted in SQL Basic, SQL Server | Tagged | 71 Comments

Difference Between Having and Where Clause in Sql Server

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 … Continue reading

Posted in Imp SQL Difference, Interview Questions, SQL Group By Having, SQL Server | Tagged | 39 Comments

How to find duplicate values in a table

Sometimes duplicate values in tables can create a major problem when we do not make a primary key or a unique key on a table. In these cases we need to find out the duplicate records and need to delete … Continue reading

Posted in Interview Questions, SQL Basic Concepts, SQL Server | Tagged , | 33 Comments

Sql Server View

Views:- View can be described as virtual table which derived its data from one or more than one table columns.It is stored in the database. It is used to implements the security mechanism in the Sql Server. For example, suppose … Continue reading

Posted in Most Imp SQL Concepts, SQL Server, SQL View | Tagged , , | 31 Comments

Second Normal Form (2NF)

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 … Continue reading

Posted in SQL Normalization, SQL Server | Tagged , , | 36 Comments