By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,413 Members | 1,594 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,413 IT Pros & Developers. It's quick & easy.

Create Function

P: 374
Hi Guys. I was recently in an interview where they asked such a question.

Create a function that will allow input string value and then will return only the numberic values of the string value inputted.

Can anyone please answer
Aug 12 '09 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 145
I'm not quite sure exactly what you need. Can you give a sample string?
Aug 12 '09 #2

P: 374
Create Function GetValue @string nvarchar(50)
Select * from contacts where contactID = @string
return (@string, int)

Something like that

Scalar-Valued Function is what im trying to do
Aug 13 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.