i had the tables structure like below
Table1
-------
Id SessionNo
1 1
2 2
3 2
Table2
-------
Id SessionNo
1 1
2 3
3 3
Table3
-------
Id SessionNo
1 1
2 3
3 4
from these three tables i need the output as
SessionNo
4
please give me a query for this
A possible solution would be (dunno if it is the best).