Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
stored procedure returns Null value
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Sivakumar
9y
473
1
Reply
Hi,
This is My storedprocedure :
GO
ALTER PROCEDURE [dbo].[uspGetVote](@TeamID INT,@CardID INT)
AS
BEGIN
SELECT AVG(VoteValue) AS [AverageVoteValue] FROM Vote
WHERE TeamID=@TeamID and CardID=@CardID and LastModifiedDateTime between getDate()-7 and getDate()
end
When execute this procedure returns Null.
This is my table values :
When i pass TeamID and CardID 1,1 its shows a Null.
Please give a correct query for that.
Thank You.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
sql query Negative values assign 0 in case using
Stored procedure Syntax error