Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Huy.
Asked: October 09, 2020 - 4:35 am UTC
Last updated: October 15, 2020 - 4:32 am UTC
Version: 20.1.0.00.13
Viewed 1000+ times
Declare v_count number; Begin select count(*) into v_count from E_EDUFIT_MARKS_DETAIL md, e_edufit_marks m where md.marks_id = m.marks_id and m.type_marks = 'W' AND md.marks_id = :P2645_MARKS_ID; if v_count > 1 then return 'FALSE'; end if; end;
create unique index IX on EMP ( case when type = 'W' then empno end );
A reader, October 14, 2020 - 7:59 am UTC
create unique index IX on e_edufit_marks m ( case when m.type_marks = 'W' then m.marks_id end );
A reader, October 16, 2020 - 6:18 am UTC
New to good database design? Check out Chris Saxon's full fundamentals class.