Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Increment in sql server. Expand / Collapse
Author
Message
Posted Monday, September 3, 2012 11:19 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 31, 2013 12:02 PM
Points: 5, Visits: 16
Hi all i need to do increment a number like aa001 to aa999 then again ab001 to ab999

aa001a0 to aa999a0 then aa001b0 to aa999b0.

Can any one help me out to find logic for this.
Post #1353708
Posted Tuesday, September 4, 2012 8:29 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 3:35 PM
Points: 13,253, Visits: 12,087
Duplicate post. direct all replies here. http://www.sqlservercentral.com/Forums/Topic1353709-8-1.aspx

_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1353934
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse