I have a table like below
ID Status
1 InActive
2 Active
3 Active
4 InActive
5 Active
I want to select ID 2 then get the status of ID 2 then based on that status I want to select all the remaining ID with the same Status.
I was not able to create a simple demo because I cant think of a way how to select.
Expected:
Get ID 2,3,5 because they all have active status
Currently working on the problem at hand
Base select:
Select * from table where id = 2
I want to know what to add to this query to be able to select the other 2 row that share same status with the id 2
select id where status ="Active"ID=2is. To find that, we'd have to do some sort of query.