need your help
I have a table in Oracle SQL Developer of this kind:
Issue ID|Subscriber_ID|Book_ID| Taken |Returned --+-------------+-------+--------+-------- 1 | 1 | 2 |01-06-16|05-06-16 2 | 3 | 5 |07-05-16| (null) 3 | 2 | 2 |06-06-16| (null) 4 | 1 | 3 |17-05-16|26-05-16
It's some sort of library book issuing where (null) in Returned column means that this book wasn't returned yet. I need to create validation rule to avoid issuing book that wasn't returned (e.g. I can't take the book #5 at the moment). How can I implement it?