Hi, got a problem and can't figure this one out.
basically i've got a field containing a value '(14)(12)(33)(22)' and i want to compare it to a table containing those values in separate cells...
record 1 : (01)
record 2 : (02)
etc...
and i want to compare this one field to those records to see whether that text string contains anything the table contains.
i've tried ContainsTable & IN but still can't figure this out.
any help greatly appreciated
:owould you kindly give us the table names and column names involved
otherwise the most i can tell you is to use LIKE
Showing posts with label inside. Show all posts
Showing posts with label inside. Show all posts
Wednesday, March 28, 2012
Monday, February 27, 2012
help writing s.proc in sql2005
hi all.
in my sql2005 i have a function that returns a value. func(x) returns j
how can use it in a select clause inside a s.proce?
select bb, func(xx) as jj , from ....
?
You should be able to include it right in your SELECT statement, since it returns a scalar.
You will, however, need to qualify the function with the schema; SELECT dbo.func(xx) or SELECT myschema.func(xx) etc.
Subscribe to:
Posts (Atom)