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). […]
Database Creation using Create Database command Read Post »
This category contains all SQL related articles
In SQL Server, database can be created by 2 ways:- Using Create Database command Using SQL Sever Management Studio (SSMS). […]
Database Creation using Create Database command Read Post »
With IN clause, we can specify multiple values in a WHERE clause. For example, in case of “IN”, one can
IN clause in SQL Server Read Post »
UPPER():- This function is used to convert the value of a column to upper case. Syntax: SELECT UPPER(string) OR
UPPER() function in SQL Server Read Post »
Avg():- This function is used to get the average value of a numeric column Syntax:- SELECT AVG(column_name) FROM table_name
AVG() function in SQL Server Read Post »
LOWER():- This function is used to convert the value of a column to lower case Syntax:- Select LOWER (string)
LOWER() function in SQL Server Read Post »
LEN():- This function is used to get the length of the given string value. Syntax:- Select len (stringvalue)
LEN() function in SQL Server Read Post »
Substring():- This function is used to return the specified number (third argument “len”) of characters from a given string(first argument)
Substring() function in SQL Server Read Post »
LTRIM ():- This function is used to get the string after the removal of leading blank spaces. Syntax:- LTRIM (
LTRIM() function in SQL Server Read Post »
Max():- This function gives the maximum value of the selected column Syntax:- Select Max (col1) from table_name In this article,
Max() function in SQL Server Read Post »
RTRIM():-This function is used to get the string after the removal of all trailing blanks. Syntax:- RTRIM ( character_expression )
RTRIM() function in SQL Server Read Post »
And & Or:- These Operators are used to further filter the recordset return by SQL queries when more than one
AND and OR Operator in Sql Server Read Post »
Sum():- This function is used to get the sum of values of the specified numeric column. Syntax:- Select Sum (column_name)
SUM() function in SQL Server Read Post »
Round():-This function is used to round a numeric field to the number of decimals specified. Syntax:- ROUND ( numeric_expression
Round() function in SQL Server Read Post »
Except command in SQL Server returns the distinct values from the left query that are not also found on the
Except command in SQL Server Read Post »
Like:- This operator is used in a WHERE clause to search for a specific pattern in the values of the
Like() function in SQL Server Read Post »
1. All the tables in the database have properly defined relationship using primary keys and foreign keys . 2. Indexes
Best practices for Database Programming Read Post »
This function is used to returns distinct values that are returned by both the query on the left and right
Intersection command in SQL Server Read Post »
While loop in SQL server Introduction In While loop, we set a condition for the repeated execution of a Code
While loop in SQL server Read Post »
Deleting Duplicate rows using CTE Many times we caught in a situation where we have a table where there is
Deleting Duplicate rows using CTE Read Post »
Ranking Function:- Sometimes we need to provide a Row number to the rows in a table or within a partition.
Ranking Functions in SQL Server Read Post »
Stuff VS Replace function Stuff Function This function is used to replace string from the given start position, passed as
Stuff VS Replace function in SQL Server Read Post »