Like this
select *, action='also comment', User_Id from CommentTable where Blog_Id in
(select c.Blog_Id from CommentTable c full outer join BlogTable b on b.Blog_Id=c.Blog_Id
where c.User_Id=1 and b.User_Id!=1 )
and User_Id<( select Time from commentTable where UserId=1) order by Date1 desc ,time1 desc

Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Aug 3, 2017, 12:09 AM EDT
Gaurav RajRank #2,919 · 493 reputationPosted Aug 3, 2017, 3:49 AM EDT
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 3, 2017, 5:51 AM EDT