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
Maneesh A N
NA
179
109.1k
select sp
Apr 22 2015 4:08 AM
CREATE procedure GoldStar_BalanceMakingCharge_Select
AS
declare @value1 int,@value2 int
SELECT GoldStar_ClientMaster.ClientID, GoldStar_ClientMaster.Name, GoldStar_DayBook.IsVaravu,
(select isnull(SUM(GoldStar_DayBook.MakingCharge),0) AS SumMakingChargeV, GoldStar_DayBook.IsVaravu
FROM GoldStar_ClientMaster INNER JOIN
GoldStar_DayBook ON GoldStar_ClientMaster.ClientID = GoldStar_DayBook.ClientID
Where GoldStar_DayBook.IsVaravu = 1
GROUP BY GoldStar_ClientMaster.ClientID, GoldStar_ClientMaster.Name, GoldStar_DayBook.IsVaravu
)-(select ISNULL(SUM(GoldStar_DayBook.MakingCharge),0) AS SumMakingChargeC, GoldStar_DayBook.IsChelavu
FROM GoldStar_ClientMaster INNER JOIN
GoldStar_DayBook ON GoldStar_ClientMaster.ClientID = GoldStar_DayBook.ClientID
Where GoldStar_DayBook.IsChelavu = 1
GROUP BY GoldStar_ClientMaster.ClientID, GoldStar_ClientMaster.Name, GoldStar_DayBook.IsChelavu
)
please correct this SP
Reply
Answers (
2
)
Search data from DataTable object in C#
html editor