Scheme Changes:

Replaced Access_Controls with APEX_AUTHORISATION
Created POSTCODES, ERROR_LOGS and SYSTEM_CONFIGURATION.
Added missing columns to ENQUIRIES, REGULATORS, etc.
Added views V_PROFILE_RT_CODE_FOR_ENRO.vw, V_PARTY_RELATIONSHIPS.vw, V_LATEST_RT_CODE_FOR_ENRO.vw.

Modules:

Added cout_err.pck, cout_system_configuration.pck.

Data:

Added Data/Demo files
Added Data/Seed files for postcodes, regions and DatabaseItemToFunctionalSpecificationReference.csv

Documentation:

Added Documentation/pldoc for plsqldoc-generated files.
Added Documentation/SupportingDocumentation/Regions to hold region definition information.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@2890 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2007-11-27 11:48:13 +00:00
parent 2a490afbbc
commit 2920f4d016
49 changed files with 18360 additions and 97 deletions

View File

@@ -0,0 +1,18 @@
CREATE OR REPLACE VIEW V_PROFILE_RT_CODE_FOR_ENRO AS
/** Show rows from enquiry_roles along with start_date of the next instance of the same rt_code
and enquiry.
*/
SELECT prty_id
,rt_code
,start_date
,end_date
,next_start_date
,enqu_id
FROM (SELECT enro.prty_id
,enro.rt_code
,enro.start_date
,enro.end_date
,enqu_id
,lead(start_date
,1) over(PARTITION BY rt_code, enqu_id ORDER BY start_date) AS next_start_date
FROM enquiry_roles enro);