I have two tables:
- BIRACI(ID, broj_biraca)
 - PRAVNI_AKT_PREDLOG_BIRACA(Pravni_akt_id, ID_biraca(FK from BIRACI)
 
When I want to insert into table PRAVNI_AKT_PREDLOG_BIRACA I need some rule to check if inserted ID_biraca has its attribute in table BIRACI with the condition broj_biraca > 15000.
I need something to show error like "Insertion not possible, BIRACI with that ID isnt having 15000 or more in broj_biraca"... Is this possible?