1
Reply

How to write select statement for find friends( like facebook find friends concept) ?

raja ramesh

raja ramesh

Jan 24 2012 6:28 AM
2k
Hi,

I have two tables 
1.User table - UserId is primary key
2.Friends table - FriendsId is primary keys

In User table I have all users list

I want to get records from following relation

User->Friend->SubFriend

User has some Friends and

Each Friend has some subfriends

requirement:

How to write select statement for get all subfriends list,

Thank you in advance

Answers (1)
Next Recommended Forum