Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

Master Tables:

Course _Table:

Column_name Data type Constraint Validations Form screen


Course_id Varchar2(10) Primary Key  Every Course will Can not be modified at
have a unique id modify / delete mode
 Should Not be
null
Course_name Varchar2(30) Not null  Should not be
null

Course_details

Column_name Data type Constraint Validations Form_screen


Course_id Varchar2(10) Foreign key  Hidden field in the
from screen.
Course_table.  Should take the value
Part of directly from the
primary key header.
in this table
Course_name Varcha2(30)  
Course_type char(1) Part of  Should not be Nul  Static LOV with the
Primary Key  Value selected / option of Fast track,
entered by the user normal or week end.
should be either
Normal (N), Fast Track
(F) or Weekend (W)
Course_fees number(7) Check  Amount should not be less
Constraint than or equal to zero
(Amount
should not be
<= 0)
Created_date Date Display item. Stores system
date.
Created_by Varchar2(20) Userid given by the user at the
time of logging in. User cannot
modify this value
Modified_by Varchar2(20) Userid given by the user at the
time of logging in. User cannot
modify this value
Modified_date date  Date on which modification
took place. User cannot
modify this value

Status Hidden field


Checked_date Date Hidden field
Checked_by Varchar2(20) Hidden Field
 Validation should include Course_id + Course_type should not be repeated / duplicated

Faculty__master

Column_name Data type Constraint Validations Form displays / remarks


Faculty_id Varchar2(10) Primary Key  Every faculty Can not be modified
have a unique at modify / delete
id mode
 It shouldn’t be
null
Faculty_name Varchar2(30) Not Null  Should not
be null
Faculty_exp Number(2) NOT NULL  Shold not
be null
Contact_num NUMBER(10) unique  It must
contain
only 10
digits
 Should not
be null
faculty_detail:

Column_name Data_type Constraint Validations Form Displays


Faculty_id Varchar2(10) Foreign key. Part Hidden field in the
of primary key screen. Should take
the value from the
header table
Faculty_name Varchar2(30)  Display Item.
Not part of
base table.
Should
display the
faculty_nam
e form the
faculty_mast
er
Course_id Varchar2(10)` Foreign key. Part  Should not Will display Lov with
of primary Key be null Course idy and
 Should Course name from
exist in course master
the Course
master
table
Course_Name Varchar2(30) Display Item. Not
part of base table.
Should display the
course name for the
selected course IDY
Created_date Date  By default Display item. Stores
system date or system date.
can be
modified (<
than sys date)
Created_by Varchar2(20) Display item Userid
given by the user at
the time of logging
in. User cannot
modify this value
Modified_date Date  By default
system date or
can be
modified (<
than sys date)
Modified_by Varchar2(20)  Who modified Display item Userid
the last time given by the user at
the time of logging
in. User cannot
modify this value
Status
Checked_date date Display item. Stores
system date.
Checked_by Varchar2(20)

Batch :

 System should check for no over lapping between the date and time for a faculty

Column_name Datatype constraint Validation Form_display


batch_id Varchar2(10) Primary Key Sequence number Can not be
modified at
modify /
delete mode
Course id Varchar2(10) Foreignkey  Should not Will display
be null Lov with
 Should Course idy
and Course
exist in name from
the Course course master
master
table
Course_name Varchar2(30) Display Item.
Not part of
base table.
Should display
the course
name for the
selected
course IDY
Faculty_id Varchar2(10) Foreign key from  Should Displays LOV
faculty master exist in with faculty
the faculty idy and faculty
master. name.
Faculty_name Varchar2(30) Displays the
name of the
faculty. Not
part of base
table
Start_time Varchar2(10) Not null
End_time Varchar2(10) Not null
Strat_date Date Not null
End_date Date Not null
Batch status Varchar2(2) Checked Listbox with Insert mode it
constraint Running or displays as
Completed Running . If
extended date
is Null and End
date is less
than system
date then
status =
Running. If
extentended
date is >=
system date
then status =
‘Running’. If
extended date
is <= system
date then
status =
‘Completed’.
If End date is
<= system
date and
extended date
is null then
status =
‘completed’
Extended_date date Should be greater Disabled in
than End date Creation of
new record.
Enabled in
modify mode
only if End
date is <=
system date
and Extended
date is null or
extended date
is greater than
or equal to
system date.
Created_date date  By default Display item.
system date Stores system
or can be date.
modified (<
than sys
date)
Created_by Varchar2(20) Userid given
by the user at
the time of
logging in.
User cannot
modify this
value
Modified_date Date  By default  time Who
system date modified
or can be the last
modified (<
than sys
date)
Modified_by Varchar2(20)  Who
modified the Userid given
last time by the user at
 the time of
logging in.
User cannot
modify this
value
Status Varchar2(2)
Checked_date date Display
item.stores
system date
Checked_by Varchar2(20)

Enquiry_master

Column_name Data_type Constraint Validations Form_display


Enquiry_date Date Should be less than Default value displays
or equal to system system date and can be
date modified
Id Varchar2(10) Primary Key  Every  Can not be
student modified at
should have modify / delete
a unique id mode
 It should not
be null
Name Varchar2(30) Not Null. Should not be Null Display Item. Not part of
Part of base table. Should
unique key display the name for
mthe selected
enquiry_master
Mobile Number Number(10) Not Null. Part Unique mobile
of Unique number with
key student name.
Shoud definitely
have 10 digits
Course_id Varchar2(10) Foreign key Will display Lov with
Course idy and Course
name from course
master
Course_name Varchar2(30) Display Item. Not part of
base table. Should
display the course name
for the selected course
IDY
Timings prefer Varchar2(10)
Source Varchar2(20) Check box with the
option of friends,
banner, website,others.
Education Vachar2(10)
qualification
E-mail id Varchar2(50)
Enquiry status Char (1) Here two status Hidden Field. While
type R/P. Saving the record for
R -> Registered first time it will save as
P -> Pending ‘P’
Remarks Varchar2(100)
Created_date Date By default system Display item. Stores
date or can be system date.
modified (< than sys
date)
Created_by Varchar2(20) Userid given by the user
at the time of logging in.
User cannot modify this
value
Modified_date Date By default system  time Who modified
date or can be the last
modified (< than sys
date)
Modified_by Varchar2(20) Who modified the Userid given by the user
last time at the time of logging in.
User cannot modify this
value
Status Varchar2(10)
Checked_date Date By default system Display item. Stores
date or can be system date.
modified (< than sys
date)
Checked_by Varchar2(20) Userid given by the user
at the time of logging in.
User cannot modify this
value

Registration_master

Column_name datetype constraint Validations Form_displaY


Student_id Varchar2(10 Primary key Can not be
modified at
modify / delete
mode
Name Varchar2(20) Not Null. Part of Should not be Null
unique key
Mobile Number Number(10) Not Null. Part of Unique mobile
Unique key number with
student name.
Shoud definitely
have 10 digits
Reg_status Char(1) Here two status Hidden Field.
type R/P. While Saving
R -> Registered the record for
P -> Pending first time it will
save as ‘P’
Created_date Date  By default Display item.
system date or Stores system
can be date.
modified (<
than sys date)
Created_by Varchar2(20) Userid given by
the user at the
time of logging
in. User cannot
modify this
value
Modified_date Date  By default  time Who
system date or modified
can be the last
modified (<
than sys date)
Modified_by Varchar2(20) Userid given by
the user at the
time of logging
in. User cannot
modify this
value
Status
Checked_date Date Display item.
Stores system
date.
Checked_by Varchar2(20)

Registration Details

Column_name datetype constraint Validations Form_displaY


Student_id Varchar2(10 Foreign key from Hidden Field.
the header table. Gets the value
from the
header
name Varchar2(30)
Course_id Varchar2(20) Not null. Foreign Will display Lov
Key with Course idy
and Course
name from
course master
Course_name Varchar2(30) Display Item.
Not part of
base table.
Should display
the course
name for the
selected
course IDY
Batch id Number(4) Not null. Foregin Should exist in the Lov(batch
key batch master status not
equal to c)
Fees Number (7) Not null. Should get
Check constraint populated from
the course
table and it’s a
display field
Discount Number(7) Should be less Default value
than or equal to with 0
fees
Total_Net _Fees Number Display field.
Calculated
value of Fees –
Discount. Not a
Database
column

Demo_table

Column_name Data type constraint validations Form_display


Course id Varchar2(10) foriegnkey List of values
retrived from the
course_table
Course_name Varchar2(30) Display Item. Not
part of base table.
Should display the
course name for
the selected
course IDY
Faculty_id Varchar2(10) Foreign key List of values
retrived from the
faculity_table
Display in screen
faculty name
Faculty_name Varchar2(30) Display Item. Not
part of base table.
Should display the
Faculty_name for
the selected
facultu_id
Demo date Date Not null Should not be Null.
Date should be less
than or equal to
system date
Students_attended Number(2) Not null
Students_registered Number(2) Not null Should be less than
or equal to
Students_attended.
Created_date Date  Display item. Display item.
Stores system Stores system
date. date
Created_by Varchar2(20) Userid given by
the user at the
time of logging in.
User cannot
modify this value
Modified_date Date  By default Display item.
system date or Stores system
can be date
modified (<
than sys date)
Modified_by Varchar2(20)  Who modified Userid given
the last time by the user at
 the time of
logging in.
User cannot
modify this
value
Status
Checked_date date Display item.
Stores system
date.
Checked_by Varchar2(20) Userid
given by
the user
at the
time of
logging in.
User
cannot
modify
this value

Feedback form

Column_name Datatype Constraints Validations Form_diplay


Course Id Varchar2(20) List of values
retrived from
the
course_table
Course_name Varchar2(30) Display Item.
Not part of base
table. Should
display the
course name for
the selected
course IDY
Student_id Varchar2(30) Foreign key
name Varchar2(30)
Mobile Number Number(10) Not Null
Updated date Date
Feed back Varchar2(300)
Closed Char(1) Check Constraint . Screen will
Values should be ‘Y’ display check
or ‘N’ box. If the check
is checked then
the value is Yes.
Created_date Date  By default  Display
system date or item. Stores
can be system
modified (< date.
than sys date)
Created_by Varchar2(20) Userid given by
the user at the
time of logging
in. User cannot
modify this
value
Modified_date Date  By default  time Who
system date or modified
can be the last
modified (<
than sys date)
Modified_by Varchar2(20)  Who modified Userid given by
the last time the user at the
 time of logging
in. User cannot
modify this
value
Status
Checked_date date Display item.
Stores system
date.
Checked_by Varchar2(20) Userid given by
the user at the
time of logging
in. User cannot
modify this
value

 Secondary update Has to update the enquirystatus field in enquiry master table to ‘C’ if Closed is
= ‘Y’
PAYMENT

Column_name datatype constraint Validtions Form_dsisplay


Payment id Varchar2(10) Primary key Should not be null.
Should not get
duplicated
Student id Varchar2(10) foreign Key
name Varchar2(30) Foreign key
Course id Varchar2(10) Foreign key
Course_name Varchar2(30)
Total Amount Number(10) Not null. Check Should be greater
constraint than 0. Total of
(amount > 0) fees paid by the
student should
not be more that
the total net fees
in the registration
table
Tax Number(7,2)
Net_fees Number(7,2) Net_fees=Total Display Item.
amount-tax Not part of base
table. Should
display the
net_fees
PAYMENT DATE DATE Should be less than
or equal to system
date

Holyday_master

Column_name Datatype Constraints validations Form _display


Holyday_date date primarykey
reason Varchar2(50)
Created_date Date  By default
system date or
can be
modified (<
than sys date)
Created_by Varchar2(20) Userid given by
the user at the
time of logging in.
User cannot
modify this value
Modified_date Date  By default  time Who
system date or modified the
can be last
modified (<
than sys date)
Modified_by Varchar2(20)  Who modified Userid given by
the last time the user at the
 time of logging in.
User cannot
modify this value
Status
Checked_date Date Display item.
Stores system
date.
Checked_by Varchar2(20) Userid given by
the user at the
time of logging in.
User cannot
modify this value

Day end Procedure:-

 This procedure will take parameter of date.


 This will be run at the end of the day.
 It checks for every unmatched registration form i.e. registration status is = ‘P’, in valid enquiry
details i.e. enquiry_status = ‘P’.
 If it found then mark the enquiry status to ‘R’ in enquiry table.
 Update registration status to ‘M’ when a registration is matched with enquiry
 The valid enquiry rows are with enquiry status is null or Enquiryt status = ‘P’
 If it didn’t found any row system will not pop up any error.

You might also like