I have a table called myTable
(input) :
user_name session_num
1 "Joe" 1
2 "Tom" 2
3 "Fred" 1
4 "Tom" 1
5 "Joe" 2
6 "John" 1
I want to know how many of my user_id
have only session_num = 1
(output) :
user_name session_num
1 "Fred" 1
2 "John" 1