I would like to do the following in SQL: (My goal is to be as efficient as possible in a View not a macro or procedure)
IF (Userid = 'BOB')
SELECT *
FROM table A
WHERE Condition = 1
IF (UserID = 'BILL')
SELECT *
FROM table A
WHERE condition = 2
I know I could write the above as...
Hi,
I am trying to select 1234 from the following field:
XXX1234XXX
Basically I want to select the numbers and leave the characters behind any sugestions?
Also the characters may or may not be there and they may be differing lengths.
Thanks in advance.
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.