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
Gagan Gautam
NA
140
14.9k
Hierarchical Data usign Self Join
Aug 5 2016 7:33 AM
this is my table with ParentId column. now i want make parent and child in this given table using self join.
I searched on internet but these is not good solution.I am using this table in Entity Framwork
My Table
___________________________
ID
Title
ParentId
31
Retial
NULL
32
Mortgogages
31
34
UK Mortgages
32
35
Buy To Let
32
36
Credit Card
31
37
Corporate
NULL
Output
e.g
31 has 0 child
32 has 2 child
32 has 0 child
Reply
Answers (
6
)
a database in SQL and I want to copy to another machine
what is the difference between text and varchar in sql