|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 10/11/2009 at 05:51PM PDT, ID: 24803395 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: |
Inside COPY-FORWARD trigger
create_record;
duplicate_record;
:majors_acyr_code := :key_block.acyr_code;
Inside ON-INSERT trigger
:majors_code := :key_block.sbgi_code;
:majors_degt_trns := :key_block.degt_trns;
:majors_degc_inst := :key_block.degc_inst;
:majors_majr_code := :key_block.majr_code;
:majors_conc_code := :key_block.conc_code;
insert_record;
insert into courses(
COURSES_CODE,
COURSES_DEGT_TRNS,
COURSES_DEGC_INST,
COURSES_MAJR_CODE,
COURSES_CONC_CODE,
COURSES_SEQNO,
COURSES_SUBJ_CODE,
COURSES_CRSE_NUMB,
COURSES_CREDITS,
COURSES_ACYR_CODE,
COURSES_CSTA_CODE,
COURSES_COUNTER,
COURSES_ACTIVITY_DATE
)
select COURSES_CODE,
COURSES_DEGT_TRNS,
COURSES_DEGC_INST,
COURSES_MAJR_CODE,
COURSES_CONC_CODE,
COURSES_SEQNO,
COURSES_SUBJ_CODE,
COURSES_CRSE_NUMB,
COURSES_CREDITS,
:MAJORS_ACYR_CODE,
COURSES_CSTA_CODE,
COURSES_COUNTER,
SYSDATE
from COURSES
where courses_acyr_code = (
select max(courses_acyr_code)
from courses
where courses_acyr_code < :majors_acyr_code
and courses_code = :majors_code
and courses_degt_trns = :majors_degt_trns
and courses_degc_inst = :majors_degc_inst
and courses_majr_code = :majors_majr_code
and courses_conc_code = :majors_conc_code
)
and courses_code = :majors_code
and courses_degt_trns = :majors_degt_trns
and courses_degc_inst = :majors_degc_inst
and courses_majr_code = :majors_majr_code
and courses_conc_code = :majors_conc_code;
WHERE courses_code = :majors_code
AND courses_degt_trns = :majors_degt_trns
AND courses_degc_inst = :majors_degc_inst
AND courses_majr_code = :majors_majr_code
AND courses_conc_code = :majors_conc_code
AND courses_acyr_code = :majors_acyr_code
ORDER BY courses_seqno, courses_subj_code, courses_crse_numb
The WHERE clause in the properites data block of the majors data block is as follows:
WHERE majors_code = :key_block.code
AND majors_degt_trns = :key_block.degt_trns
AND majors_degc_inst = :key_block.degc_inst
AND majors_majr_code = :key_block.majr_code
AND ((majors_conc_code = :key_block.conc_code) OR (:key_block.conc_code IS NULL))
AND majors_acyr_code = (SELECT MAX (B.majors_acyr_code)
FROM majors B
WHERE B.majors_acyr_code <= :key_block.acyr_code
AND B.majors_code = :key_block._code
AND B.majors_majr_code = :key_block.majr_code
AND B.majors_degt_trns = :key_block.degt_trns
AND B.majors_degc_inst = :key_block.degc_inst
AND ((B.majors_conc_code = :key_block.conc_code) OR (:key_block.conc_code IS NULL)))
The WHERE clause in the courses properties data block is as follows:
WHERE courses_code = :majors_code
AND courses_degt_trns = :majors_degt_trns
AND courses_degc_inst = :majors_degc_inst
AND courses_majr_code = :majors_majr_code
AND courses_conc_code = :majors_conc_code
AND courses_acyr_code = :majors_acyr_code
ORDER BY courses_seqno, courses_subj_code, courses_crse_numb
|
Advertisement