POPULATION SELECTION CONCEPT People in Database Selection Rules or Criteria Selected Population of...

Preview:

Citation preview

POPULATION SELECTIONCONCEPT

People in Database

Selection Rulesor Criteria

Selected Population ofIndividuals who

Satisfy Rules

THE SELECTED POPULATION

• May be used in letter generation.

• May be used in some Banner reports.– Example: Student schedules

• Is required in some Banner reports.

• May be used for “simple” reports.

Examples

• General Person– Find the number of (or get a list of) person

records with missing birth dates.

• Recruiting– Find the number of (or get a list of) recruits

from a particular high school.

More Examples

• Admissions– Find the number of applicants of a particular

gender or ethnicity.

• Location Management– Find the number of students requesting housing

in a particular dormitory.

More Examples

• General Student– Find the number of students in a particular

major.

• Accounts Receivable– Find the number of students who have been

charged a parking fine.

And More Examples

• Faculty Load– Find the number of faculty members who are

teaching more than 15 credits.

• Academic History– Find the number of students graduating with

honors.

Know Your Data

• Where are the data entered on Banner forms?

• How do the Banner forms correspond to the Oracle tables in the database?

• What are the relationships between data in different tables?

For Example

• If you want to find the number of female applicants, you need to know– How is an applicant entered in Banner?– How is a person’s gender entered in Banner?

• It takes time and experience to gain knowledge of the system.

Know the Tables

• Normally, a table corresponds to a block of a Banner form.

• The naming convention for tables is similar to that for forms.– Seven characters

Table Names

• 1st character - System

• 2nd character - Module

• 3rd character - Type of table– Base, Repeating, and Virtual (or View)

• 4th - 7th characters -

Abbreviation of table purpose

Examples

• SPBPERS is the base table corresponding to the General Person Form–SPAPERS.

• SPRIDEN is the repeating table corresponding to the identification information block of the Identification Form–SPAIDEN.

Examples (continued)

• SPRADDR is the repeating table corresponding to the address information block of SPAIDEN.

• SPVADDS is a virtual table (or view) created to give current name and address information.

Finding Table Names

• Use Dynamic Help from the Banner form.

• Consult the Banner Student Technical Reference Manual.

• Print the Data Element Dictionary from GURPDED.

Visualizing a Table

• Think of a table as a grid having rows and columns–similar to a spreadsheet.

• Each row of the grid corresponds to a record.

• Each column of the grid corresponds to a field in the record.

A Simplified View of SPBPERS

PIDM GEN- CONFI- BIRTH ETHNIC CITIZEN- MARITALDER DENTIALITY DATE CODE SHIP STATUS

12345 F 04-Jul-81 1 Y S12346 F Y 06-Nov-75 2 Y S12347 M 03-Dec-72 1 Y M12348 F Y 15-Mar-68 2 N D12349 M Y

SQL Basics

• Standard Query Language

• Population Selection uses the SQL select statement.

SQL Select Statement

• Select __________ PIDM

• From__________ table name(s)

• Where __________ criteria

Select

• In a population selection you can select only PIDMs. (A Personal IDentification Master is an internal identification number that is created when person and non-person records are entered on SPAIDEN.)

From

• The From clause indicates which table in the database contains the information being used in the selection.– The From clause must include the table used in

the Select clause.– The From clause also must include any other

table(s) involved in the Where clause.

Example–SQL Select

• Select SPRIDEN_PIDM

• From SPRIDEN

• Where SPRIDEN_LAST_NAME = ‘Smith’

Another Example

• Select SPRIDEN_PIDM

• From SPRIDEN, SPBPERS

• Where SPRIDEN_LAST_NAME = ‘Smith’

• and SPBPERS_SEX = ‘F’

HIERARCHY OF TERMS

USED IN

POPULATION SELECTION

AND LETTER GENERATION

APPLICATION

SELECTIONIDENTIFIER VARIABLE

OBJECT

Creator ID Creator ID

Population SelectionLetter

Generation

(optional)

FORMS USED IN POPULATION SELECTION

• GLRAPPL--Define application and enter global rules (if any)

• GLRSLCT--Establish selection identifier and enter selection rules

• GLBDATA--Apply the selection rules to selection a population

• GLAEXTR or GLIEXTR--View the population

Recommended