```
SELECT COUNT(sa.SessionId) AS AttendancePoints, sa.UserId 
FROM SessionAttendance sa 
WHERE IsParticipated = 1 
GROUP BY UserId

SELECT COUNT(sf.Session_Id) AS FeedbackPoints, sf.User_Id 
FROM SessionFeedbacks sf 
GROUP BY User_Id

SELECT SUM(sac.Points) AS ActivityPoints, sac.UserId 
FROM StudentActivities sac 
GROUP BY UserId

```

[Sample OUTPUT](https://i.stack.imgur.com/gi6bu.png)

Is there any way to put those 3 outputs into single output using a common user id in SQL Server?

Required Output:

```
User Id | AttendancePoints | FeedbackPoints | ActivityPoints

```