102 VISTA VIEWS REPORT BUILDING PowerCampus Version 8.3.2
RECAP OF 101 – WHAT IS VISTA VIEWS? A tool used to create custom views with Vista Reports Users can select pre-defined tables and other custom views Views and tables can be secured by profile, user name/operator id, or formal name(this view is not for you) Users can add columns, create joins, develop where clauses, group by, sort, and customize data, etc 10/12/20152
RECAP OF 101 – WHAT IS VISTA VIEWS CONTINUED 10/12/ Custom views, pre-defined tables, security settings, and other important features (joins, where clauses, group by, sort, compute, syntax preview) Data Tables – Holds data on students, applicants, inquires, etc Code Tables – Hold the various user-defined code tables for your institution System Views – Hold any system-defined views which are currently on the system User Views – Hold any views that you have created System Tables – Holds the various system tables which are currently on the system Where clauses filter data. Some examples include: Defining a specific year, term, and/or session Defining a specific program, degree, and/or curriculum Separating enrolled from withdrawn students Eliminating non-credited students from results Group By is a feature used to group data. Examples include: Displaying the number of classes a student is taking Displaying the number of terms a student has been enrolled in Compute allows the user to: Customize reports for requestor’s use, personal use, or meeting other reporting needs by Manipulate strings Perform mathematical computations Working with null values Rows can be unique by clicking Distinct Syntax tab allows the user to edit the SQL syntax directly (System Administrator Role) Preview shows results from the SQL syntax tab
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE Joins are needed when selecting more than one table Tables need to relate to each other in order for syntax to run successfully Joins help to relate tables to one another Three types of joins can be created Equal Join Right Outer Join Left Outer Join 10/12/20154
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE CONT. Illustration – Equal Join 10/12/20155 Table ATable B All of the matching records from Table A and Table B Equal Join = A&B intersected
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE CONT. Example – Equal Join 10/12/20156 Table A = People Table B = Telecommunications
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE CONT. Illustration – Right Outer Join 10/12/20157 Table ATable B All of the records from Table B and all the records from Table A that match Table B Right Join = Table B + (A&B) intersected
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE CONT. Example – Right Outer Join 10/12/20158 Table A = People Table B = Telecommunications
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE CONT. Illustration – Left Outer Join 10/12/20159 Table ATable B All of the records from Table A and all the records from Table B that match Table A Left Join = Table A + (A&B) intersected
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE CONT. Example – Left Outer Join 10/12/ Where clause is the same as the example for the Equal Join and Right Outer Join Table A = People Table B = Telecommunications
VISTA VIEWS JOINS MAKE ALL THE DIFFERENCE CONT. Overall Results 10/12/ Inner JoinsResults Equal Join862 Right Outer Join Left Outer Join938 Equal join results include students from the People Table that have alternative addresses Right join results have all the students from the Telecommunications that have alternative addresses and those students in common with both tables (Telecommunications and People) Left join results include all students from the People table with or without an alternative address
Phone, Address, Demographics and IPEDS Ethnicity 10/12/ VISTA VIEWS 102 – TROUBLE JOINING TABLES? QUICK ACCESS SLIDE
Education 10/12/ VISTA VIEWS 102 – TROUBLE JOINING TABLES? QUICK ACCESS SLIDE CONT.
GPA’s and Credits 10/12/ VISTA VIEWS 102 – TROUBLE JOINING TABLES? QUICK ACCESS SLIDE CONT.
VISTA VIEWS 102 – CHANGES IN JOIN TAB Join tab changes start with PowerCampus version 8.4 and higher Joins are between Tables as opposed to Tables and Columns Left Outer, Right Outer, and Equal Joins can be set up between Tables Columns will have to be set up for Left and Right Outer Joins Equal Joins are Cross Joins instead of Inner Joins (Cross Joins act like an Inner Joins with a Where Clause) Filters have been added for Outer Join Tables. “And” is given for all filters Syntax for Vista Views are now written in new SQL. Square brackets are used to differentiate between Tables, Columns, and custom column names 10/12/201515
VISTA VIEWS 102 – CHANGES IN JOIN TAB CONT. 10/12/201516
VISTA VIEWS 102 – CHANGES IN SYNTAX 10/12/201517
VISTA VIEWS 102 – MODIFICATIONS Case When Examples – Undergraduate Population 10/12/201518
VISTA VIEWS 102 – MODIFICATIONS CONT. Left, Right, and Substring Examples 10/12/201519
VISTA VIEWS 102 – USEFUL WEB RESOURCES FOR MODIFICATIONS Websites: Stackover flow - Sql Server Helper - Microsoft Developer Network - W3schools - Google – (your problem sql or sql your problem) 10/12/201520
VISTA VIEWS REFERENCES PowerCampus Vista User Guide Release 8.1, June 2012 PowerCampus Release Guide Release 8.4, November /12/201521
VISTA VIEWS DISCUSSION Questions/CommentsContact Information Name: Anthony Williams Title: Dir. Institutional Research College: Metropolitan College of New York Office #: ext /12/201522