Good day. I have one table. Please help me make a request.
1st request:
SELECT Name, Time FROM table1 WHERE Ongoing_ID IS NOT NULL
2st request:
SELECT Name, Time FROM table1 WHERE Disconnect_ID IS NOT NULL
how can i combine these two queries into one? It is necessary to get values if Ongoing NOT NULL count >0 and Disconnect_ID NOT NULL count >0. Those. I need to get values that both have values. If disconnect_ID = 0, then it is not necessary example sql table:
