To get SESSION number in Teradata

You can get the session number or id in which you are working.

Code:
SELECT SESSION;


Output:
Session
1007