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
rd shinde
NA
4
3k
about sql query
Mar 27 2014 8:18 AM
I have 2 tables
tblLog and tbluser
tblLog
-UserId
-Date
-Validity(bit) ---0 for invalid 1-valid
-StatusId
tblUser
-UserId
-UserName
I want to getting datewise Valid and Invalid count data if i entered UserName
e.g
if i entered Username=3 and fromDate=25/03/2014 and toDate=27/03/2014
Date Valid Invalid
25/03/2014 0 1
26/03/2014 5 4
27/03/2014 1 2
how should I write query for showing above data ?
Reply
Answers (
3
)
Get Data From one SQL Server to Other SQL server (using C#)
How many records has a table