You can use window functions:
select coalesce(userid, max(userid) over (partition by sessionid)) as userid,
coalesce(useremail, max(useremail) over (partition by sessionid)) as useremail,
coalesce(username, max(username) over (partition by sessionid)) as username,
. . .
from t;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…