Copernicus98,
Maybe you can just normalize the BCOrder table to
BcId (numeric to sort the values)
BcVal (the char value)
join SegBc to BCOrder and order by BcId
If you can't play with BCOrder (maybe because BCOrder is used, as is, in too many other places) perhaps you can just create a...
stiej,
Just look up 'SQL User-Defined Functions' in books on line.
The bottom line is that you can create a function whose return value is a table - and you can use that return value just as if it were a table or view as in select * from dbo.myUdf(parm).
There were many, many improvements from...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.