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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 select first 10 numeic values

Author  Topic 

oracle_corrgi
Yak Posting Veteran

98 Posts

Posted - 2006-08-11 : 02:25:13

hi
ps let me know how to select only the first 10 numeric values from this data

dgdgdg12121ff4545445488gg
eg:121214545445

its very urgent
pls

thanxs


database

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-08-11 : 02:49:31
duplicate post http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=70332


KH

Go to Top of Page

Vinnie881
Master Smack Fu Yak Hacker

1231 Posts

Posted - 2006-08-11 : 03:01:55
write a function that passes the string. Within that function use a while statment that increments through each charector using the isnumeric operator until it reaches the end of the string, or the string len is =10.
Go to Top of Page

oracle_corrgi
Yak Posting Veteran

98 Posts

Posted - 2006-08-11 : 05:14:38
quote:
Originally posted by Vinnie881

write a function that passes the string. Within that function use a while statment that increments through each charector using the isnumeric operator until it reaches the end of the string, or the string len is =10.




iam able to get all the values dgdgdg12121ff4545445488gg

database
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2006-08-11 : 07:01:30
interesting example..."...to select only the first 10 numeric "

"eg:121214545445"...which is 12 numbers
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2006-08-11 : 07:02:30
did you get an answer in time to finish your test?

For fast help, follow this link:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx

Learn SQL
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page
   

- Advertisement -