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
Ramon Quintana
NA
404
65.3k
How to do a SUM inside a CASE WHEN clause
Sep 2 2019 1:01 PM
Hi,
i have created a field called PNL which is part of one main select, and it was created by using CASE WHEN clause,
all is ok but,
now i want to add the "Gross_Profit" value inside that field PNL with the CASE WHEN to it can be show or appears in the main Query..
QUESTION:
how can i add the new value "Gross_Profit" within CASE WHEN clause as a part of the PNL field?
I Hope to be clear enough...
Thanks---
Reply
Answers (
3
)
How to merge sql query
SQL: Msg 116, I got this error creating a field´s value