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
Santosh Sasupalli
NA
181
25.2k
sql inner join query with specifc condition column
Nov 7 2017 4:39 AM
hi All,
please help me,
i have 2 tables like this
parent table:
id name
----------------
1 pa
2 pb
3 pc
4 pd
child table:
-----------------
id pid name status
--------------------------
1 1 ca 1
2 2 cb 2
3 1 cc -1
4 1 cd -1
5 2 ce 1
6 3 cf -1
7 4 cg 1
now i want out put like this:
pid cname
1 cc,cd
3 cf
which mean which child status=-1 that names return , separeted and having count(status=-1)>0
Reply
Answers (
2
)
how to select first 15 days and last 15 days of every month
how to display 24 fortnight in sql server.