TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
13
0
MS SQL If Substring and EXPR1
Jan 31 2013 11:20 AM
Hi All, I am porting an old MS access system to MS SQL and I am having a slight problem porting the SQL code to the server.
I am using a View in MS SQL server.
I have cust the expression down to just the one field I am trying to deal with, however I am having a few syntax problems, could someone possibly help me?
SELECT Ship_To, If(Substring([Ship_To],1,2)="05","BMW","") AS Expr1
FROM Master;
This is very easy to do in MS Access, I am unsure what I am doing wrong!
Reply
Answers (
2
)
sql server Getting Result fast
Error converting data type varchar to numeric