[FIXED] SQL getting rows with a flag value without using functions Issue I have a following table src="https://i.stack.imgur.com/lu6MS.png" alt="enter…