USING Sql to make banner better

Slides:



Advertisements
Similar presentations
Databases Section 4: Select Queries Presented By: Lindani Ncube Based on Materials by: M Halse.
Advertisements

SQL - Subqueries and Schema Chapter 3.4 V3.0 Napier University Dr Gordon Russell.
TURKISH STATISTICAL INSTITUTE 1 /34 SQL FUNDEMANTALS (Muscat, Oman)
Relational Algebra, Join and QBE Yong Choi School of Business CSUB, Bakersfield.
1 Merging with SQL HRP223 – 2011 October 31, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
1 Creating and Tweaking Data HRP223 – 2010 October 24, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Introduction to SQL Session 2 Retrieving Data From Multiple Tables.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Structured Query Language Chapter Three (Excerpts) DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
SQL for Data Retrieval. Save your SQL Scripts When working with SQL Management Studio, you should keep saving your scripts as a.sql file to somewhere.
Argos - Moving into the Community Presented by: Bruce Knox University of Arkansas Division of Agriculture Cooperative Extension Service March 23, 2009.
Session Title: Using SQL and PL/SQL for Queries and Reporting Presented By: Stephen Frederic Institution: IHL September 16, 2013.
Session Number 7 Duplicate PIDM Panel Discussion Cuesta Community College Lori McLain - System Administrator/Operator.
Banner and the SQL Select Statement: Part Four (Multiple Connected Select Statements) Mark Holliday Department of Mathematics and Computer Science Western.
Lakisha Sanders Assistant Vice President of Financial Aid
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Introduction to the Self-Service Engine Richard Oberlin NOCCCD Session B4 (Part 2)
Banner and the SQL Select Statement: Part Three (Joins) Mark Holliday Department of Mathematics and Computer Science Western Carolina University 4 November.
Clint Living Nassirou Halilou Cindy Mathis Streamline the creation of Perkins Promissory Notes.
Session Title: Using SQL and PL/SQL for Queries and Reporting Presented By: Stephen Frederic Institution: IHL September 16, 2014.
 Agenda 2/20/13 o Review quiz, answer questions o Review database design exercises from 2/13 o Create relationships through “Lookup tables” o Discuss.
1 Agenda – 10/24/2013 Answer questions from lab on 10/22. Present SQL View database object. Present SQL UNION statement.
Relational Databases.  In week 1 we looked at the concept of a key, the primary key is a column/attribute that uniquely identifies the rest of the data.
TIPS AND TRICKS WITH POPSELS!
1 Database Systems Introduction to Microsoft Access Part 2.
Student Admissions Introduction to Reporting Instructors: Linda Atkinson and Linda Herron The BARS Support Team.
SQL for Data Retrieval. Save your SQL Scripts When working with SQL Management Studio, you should keep saving your scripts as a.sql file to somewhere.
POPULATION SELECTION CONCEPT People in Database Selection Rules or Criteria Selected Population of Individuals who Satisfy Rules.
Structured Query Language SQL Unit 2 An Introduction to Organizing and Retrieving Data with SQL.
SqlExam1Review.ppt EXAM - 1. SQL stands for -- Structured Query Language Putting a manual database on a computer ensures? Data is more current Data is.
th Annual PABUG Conference Automating PLUS loans How to do it What not to do.
PeopleSoft Financials Advanced Query Training Financial Information Systems and Reporting Controller’s Division
Manipulating Data Lesson 3. Objectives Queries The SELECT query to retrieve or extract data from one table, how to retrieve or extract data by using.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 5: SQL I Rob Gleasure robgleasure.com.
1 SQL Chapter 9 – 8 th edition With help from Chapter 2 – 10 th edition.
 CONACT UC:  Magnific training   
Structured Query Language SQL-II IST 210 Organization of Data IST2101.
Select Complex Queries Database Management Fundamentals LESSON 3.1b.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Dustin MCdaniel – Director of Financial Aid Athens Technical College
Advanced Excel Helen Mills OME-RESA.
Structured Query Language
MBUG 2016 Session Title: Return to Title IV in Banner
COP Introduction to Database Structures
Structured Query Language (Data Manipulation Language)
Basic Population Selections
Using the Set Operators
Working REAUCOD for PLUS Loans: A new way to get organized
Dustin McDaniel – Athens Technical College
SQL – Subqueries.
While Loops BIS1523 – Lecture 12.
SQL Structured Query Language 11/9/2018 Introduction to Databases.
David M. Kroenke and David J
Using the Set Operators
Sirena Hardy HRMS Trainer
SQL – Entire Select.
CS4222 Principles of Database System
MBUG 2017 Session Title: Preventing/Correcting Multiple Records
Lab 2 HRP223 – 2010 October 18, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Contents Preface I Introduction Lesson Objectives I-2
Chapter 8 Advanced SQL.
Rules Writing 101 Does RORRULE make you break out in a cold sweat
Building Queries using the Principle of Simplest Query (POSQ)
Topic 12 Lesson 2 – Retrieving Data with Queries
Jeremy Mayernik Duquesne University
Using the Set Operators
Manipulating Data Lesson 3.
Set Operations Part VI.
Table Joins Part II.
Presentation transcript:

USING Sql to make banner better Dustin McDaniel Athens Technical College

If you are using POP SELS Select From Where

YOU are ALREADY using SQL Select From Where

There is a big difference in the output

Basic tips Keep reports short and simple at first. The longer and more complex a query is, the harder it is to get everything to behave and/or track down problems. We’ll talk about making more complex reports in a bit. Be aware of school differences in how things are coded. Borrowing a report from a friend can be a great way to start but don’t expect it to work without some tweaking. Avoid writing new reports during times when Banner is under stress (registration, etc.). This is the one time you can break something using SQL Developer. If Banner is already overloaded and you run a bad script, you can crash Banner.

The green “play” button runs the report If you report runs for more than 8 or 10 seconds, it’s likely that you have left something out and your Banner database is running at 100%. Click the red X circle to immediately kill the report.

Select tips Commas! You need one after each field you’re selecting Several helpful functions such as SUM() and COUNT(). These require a GROUP BY line in the WHERE section (more on this later). Are you getting duplicates in your output? Adding DISTINCT after SELECT can help weed out duplicates. Is there something missing or incorrect in your WHERE section? (Term, Aid Year, etc.) Leaving a column out is a last resort but it will easily get rid of duplicate lines. Missing a column in your output? You probably missed a comma after a SELECT field

from tips This is your list of tables used in your SQL statement. It must include all tables under the SELECT and WHERE keywords. Don’t include tables you don’t need. At best, this will slow down your script. At worst, it will cause it not to work.

WHERE tips This is where you define your criteria for your report Joining tables All tables have to be joined by the PIDM or other common element. Pop sels do this automatically behind the scenes. spriden_pidm = sfrstca_pidm AND spriden_pidm = rorenrl_pidm AND spriden_pidm = rpratrm_pidm AND If you are using spriden in your script, you always need “spriden_change_ind is null” in your WHERE section. This will pull the current ID (the student ID number rather than SSN). GROUP BY requires to list all of the fields you’re using in SELECT except the one you’re grouping by Know how Banner works. Does this table have a current record indicator, aid year, sequence number

Commonly used tables SPRIDEN – student ID and name SGBSTDN – major code SFRSTCR – registration RORENRL – FA hours RPRATRM – term level FA RORSTAT – verification info SHRLGPA – cumulative GPA/hours TBRACCD – student account DESC Table This will give you a list of all fields in a table

Subqueries where sgbstdn_term_code_eff = (select max(sgbstdn_term_code_eff) from sgbstdn where sgbstdn_pidm = spriden_pidm and sgbstdn_term_code_eff <= '&&term_code')

Joining tables on things besides pidm where ssbsect_crn = sfrstcr_crn and ssbsect_term_code = sfrstcr_term_code and spriden_change_ind is null and spriden_pidm = rcrapp1_pidm and spriden_pidm = rcrapp3_pidm and rcrapp1_aidy_code = 1516 and rcrapp3_aidy_code = rcrapp1_aidy_code and rcrapp1_curr_rec_ind ='Y' and rcrapp1_seq_no = rcrapp3_seq_no and

MINUS, INTERSECT, and UNION In my opinion, these functions are the most powerful thing you will use in pop sels and SQL. It’s almost always better to create two simple scripts to do the job of one complicated one. Example: You can create a script to find students who made all F’s in a term by taking students who had at least one F and using the MINUS function to remove students who had a grade that was not an F

Example ( select spriden_id, spriden_first_name, spriden_last_name from spriden, SHRTCKG, RPRATRM where spriden_pidm = SHRTCKG_pidm and spriden_pidm = RPRATRM_pidm and spriden_change_ind is null and SHRTCKG_TERM_CODE = 201612 AND SHRTCKG_GRDE_CODE_FINAL IN ('F','F*','WP','WF','W') AND (RPRATRM_TERM_CODE = 201612 AND RPRATRM_FUND_CODE = 'PELL' AND RPRATRM_PAID_AMT > 0)

MINUS select spriden_id, spriden_first_name, spriden_last_name from spriden, SHRTCKG, RPRATRM where spriden_pidm = SHRTCKG_pidm and spriden_pidm = RPRATRM_pidm and spriden_change_ind is null and SHRTCKG_TERM_CODE = 201612 AND SHRTCKG_GRDE_CODE_FINAL NOT IN ('F','F*','WP','WF','W') AND (RPRATRM_TERM_CODE = 201612 AND RPRATRM_FUND_CODE = 'PELL' AND RPRATRM_PAID_AMT > 0) )

MINUS select spriden_id, spriden_first_name, spriden_last_name from spriden, RPRTIIV where spriden_pidm = RPRTIIV_pidm and spriden_change_ind is null and RPRTIIV_REV_AWARD_AMT IS NOT NULL

SQL in Banner