Category Archives: SQL Server

This category contains all SQL related articles

My Best Technical Sites and Blogs

Many times my friends ask me which technical sites they should refers for finding the solutions, so below is the list of tech sites which I used to refer most of the times for learning technologies and finding the solutions … Continue reading

Posted in Miscellaneous, SQL Server, SQL Tips | Tagged | 6 Comments

How to restore database backup in SQL SERVER

In this article, I am going to explain the process of  Database restoration using the SQL Server Management Studio. In this article, I will try to explain this process in a simple way so that a database developer having little … Continue reading

Posted in SQL Advanced, SQL Database Restoration, SQL Server | Tagged , | 30 Comments

How to take Database backup in SQL SERVER

Introduction This article explain the simple way to take the database backup in SQL SERVER which can be easily understandable by the database programmer having little knowledge of DBA. For taking the database backup, we need to follow the given … Continue reading

Posted in SQL Database Backup, SQL Server | Tagged , | Leave a comment

Database Creation using SQL Sever Management Studio (SSMS)

In the previous article (Database Creation using Create Database command), I explained the database creation using the Create database command. In this article, I am going to explain the steps of creation a database using SQL Sever Management Studio (SSMS) … Continue reading

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

Database Creation using Create Database command

In SQL Server, database can be created by 2 ways:-  Using Create Database command  Using SQL Sever Management Studio (SSMS). In this article, I am going to explain the database creation using the command CREATE DATABASE. Syntax for creating a … Continue reading

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

IN clause in SQL Server

With IN clause, we can specify multiple values in a WHERE clause. For example, in case of “IN”, one can use the subquery to get the multiple values in the IN clause or we can have predefined values. In this … Continue reading

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

AVG() function in SQL Server

Avg():- This function is used to get the average value of a numeric column Syntax:-       SELECT AVG(column_name) FROM table_name In this article, we are going to use the following table for some examples:- CREATE TABLE [dbo]. [Employee]( [Empid] [Int] … Continue reading

Posted in SQL Functions, SQL Server | Tagged | 29 Comments

UPPER() function in SQL Server

UPPER():- This function is used to convert the value of a column to upper case.  Syntax:    SELECT UPPER(string) OR Select UPPER(Column name) from tablename For example,   SELECT UPPER(‘Vivek’) Result:    VIVEK

Posted in SQL Functions, SQL Server | Tagged | 30 Comments

LOWER() function in SQL Server

LOWER():- This function is used to convert the value of a column to lower case  Syntax:-  Select LOWER (string)    or    SELECT LOWER(column_name) FROM table_name For example, SELECT LOWER(‘Vivek Johari’) Result:- vivek johari

Posted in SQL Functions, SQL Server | Tagged | Leave a comment

LEN() function in SQL Server

LEN():- This function is used to get the length of the given string value.   Syntax:-     Select len (stringvalue)   For example,     Select len(‘Vivek Johari’)    Result:-    12

Posted in SQL Functions, SQL Server | Tagged | Leave a comment