Quantcast
Channel: Programming Solution » Sql Server 2008
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

SQL Order By

In this post we will see how sql order by works and what are the different ways for using sql order by. This post shows some basic order by syntax and later we will see some advanced way of using sql...

View Article



Removing the last character from a TSQL string

Often we need to remove the last few characters from a tsql string. To remove last n characters from a tsql string we may apply any of the below methods. Method 1: Removing the last character from tsql...

View Article

Integer sequence generator, Date sequence generator

Often we need to create a sequence of integers or a sequence of date from a starting point to an end point. Suppose we want to create a sequence of integer starting from 10 to 20. We can do this using...

View Article

Image may be NSFW.
Clik here to view.

Use of Recursive CTE (Common Table Expression) in a Hierarchical Table to...

Often we use self referencing hierarchical table in database. Typical example is an employee table which has an employee in a row and every employee has a supervisor who is another employee. Thus the...

View Article

Image may be NSFW.
Clik here to view.

Easiest way to find and delete duplicate rows from a table using CTE in SQL...

It is very common problem to find out the duplicate rows from a table. Often we need to delete the duplicate rows also keeping only one instance from each set of duplicate rows. By duplicate row, it...

View Article


Image may be NSFW.
Clik here to view.

Data Generation Plan to Generate Dummy Test Data for SQL Server Tables

Often we need some dummy test data in our database tables to test whether the system is working correctly. Sometimes if we have any query or process that might be a consideration of performance issue,...

View Article

Image may be NSFW.
Clik here to view.

Integer Sequence Generator Using CTE (Common Table Expression)

Often we need to have a sequence of integer numbers in t-sql. There are lots of ways to generate integer sequence in t-sql. You can see one solution in the following location. Integer sequence...

View Article

IsPalindrome in T-SQL

A palindrome is a word, phrase, number, or other sequence of units that can be read the same way in either direction. Some simple example of palindrome are 1. Malayalam 2. Amma 3. Appa 4. Madam 5....

View Article


Image may be NSFW.
Clik here to view.

All Character Occurrence in TSQL

In this post, we will see how we can find out what are the different characters available in a string and what is the number of occurrence of each individual character in the string. The first solution...

View Article


nth Occurrence of a character in a string

In sql server we have a charindex function that returns us the index of a specific character inside a string. It returns the position of the first occurrence. But often we need to find out the position...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images