Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
pankaj2910
Starting Member
31 Posts |
Posted - 2014-09-24 : 02:53:51
|
Hi,I have a table having codecode12345678213456784578961212345678213456782134567812347586I want result on the basis of first 2 digit the repeatation of code is count as 1. code1 code2 count12 34 221 34 145 78 1pankajrockspankajrocks |
|
Arun Babu N
Starting Member
26 Posts |
Posted - 2014-09-24 : 03:39:46
|
didnt understand.what is repeating in the code..?arunbabu |
|
|
pankaj2910
Starting Member
31 Posts |
Posted - 2014-09-24 : 03:44:07
|
Repeatation means the complete code repeat in the rowpankajrocks |
|
|
|
|
|