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
Gagan Sharma
Tech Writer
2.6k
692.7k
why i am getting error?
May 16 2017 5:24 AM
In Sql Server when i run query :
Select Case when 5>2 then 1
else 2 end
its working perfectly, But when i run the below query its showing error ?
Query : Select 5 > 2
Output:
Msg 102, Level 15, State 1, Line 17
Incorrect syntax near '>'.
Why error ? instead of displaying True or false or 1 or 2? on comparison .
Reply
Answers (
4
)
Print Pyramid in sqlserver
Composite index Vs Covering Indexes