How can I optimize this SQL query without changing its logic? – Mysql
I am developing a chatting application. I have written a SQL to get the active chats associated with the user. It used to get user to user chat and group chats based on sort it in descending order based on…