i have a table like this,
i want to select all doc no having status 1.
select * from tbl where doc_status=1 will select 101,102,101. But in for doc_no 101 there is doc-status 0 also so it wont select.How can i do that, desired output will be
103 only
