I have two table user and follow.I want to write view such that it will fetch all details of perticuler user along with that two extra column as follower count and followee count alias.
eg. user id=11 then all details from user tables plus followcount 1 and followed count1
You can achieve this is by using
JOIN
statements in your query:example of how you can achieve your final result: