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
Pooja Chowdhury
NA
396
39.4k
sql query of paid and star rating logic
May 21 2018 2:28 AM
two tables are there one starrating and one paidmember table.
ID
paid
1
1
2
1
3
0
4
1
5
1
6
1
ID
star
1
6
2
6
3
6
4
5
5
6
6
3
if star will be 6 and paid=1 it shows first if paid=0 and rating 6 it show last then check the star 5 same logic
Reply
Answers (
4
)
Create server agent JOB
Running query in sql server