TAKING ADVANTAGE OF THE PROC SQL PASS-THROUGH FACILITY
|
|
- Erica Bryant
- 7 years ago
- Views:
Transcription
1 328 Host Systems and Environments TAKING ADVANTAGE OF THE PROC SQL PASS-THROUGH FACILITY Timothy Pruitt Corporate Cost Management Inc. INTRODUCTION The SQL procedure in SAS Release 6.07 provides a useful window with which a user can pass SQL statements directly to a database management system (DBMS) for processing. This window is the Pass-Through facility available with PROC SQL and SAS/ ACCESS software under SAS The Pass-Through facility provides the tools needed to easily and quickly create, access and manipulate data found in the relational objects of a DBMS. Relational data structures can be accessed in their natural DBMS environment directly and efficiently and can be easily retrieved into SAS data structures, in the form of PROC SQL tables and views, for further processing. The Pass-Through facility offers the ability to assign tasks to the DBMS, using SQL, or to SAS based on the strengths of each and the nature of the data. This is a brief overview of some of the basic techniques and terminology associated with the Pass-Through facility and a gnide to getting started and taking advantage of the facility's tools. CONCEPTSITERNITNOLOGY It would be safe to assume that any user that wishes to use the Pass-Through facility already has a basic knowledge of SQL and relational data. However, a brief overview of some of the terms and concepts that are associated with relational data and are essential to the Pass-Through facility is provided. Table - A group of rows that have the same columns. The rows of a table can be thought of as corresponding to the observations in a SAS data set. The columns therefore would be like the variables in a SAS data set. A row of a table is the smallest unit that can be deleted or inserted into a table. View - A virtual table that has no physical storage. The view merely represents the data that is physically stored in tables. An example would be a view that provides a subset of a table by limiting the rows of a table. In essence only the subset criteria that limits the rows of a table is defined as a view. When the view is requested, the criteria is applied to a table according to the view definition and the result appears as if the view was a physical table. Index - An ordered set of pointers to the data in a DBMS table. These are some of the key PROC SQL statements that are used when communicating with a DBMS via the Pass Through facility. CONNECT statement - Establishes a connection with a DBMS supported by the SAS/ACCESS software. The connection allows SQL statements to be sent to or received from a DBMS. The CONNECT statement is usually associated with a PROC SQL SELECT statement. Note: The CONNECT statement is optional with some interfaces. In these cases a connection is automatically made once an EXECUTE or CONNECTION TO statement is issued. DISCONNECT statement - Ends a connection with a DBMS.. Note: If a DISCONNECT statement is not issued, the connection is automatically broken when PROC SQL ends. CONNECTION TO statement - Enables queries of DBMS data to be used in PROC SQL queries and views. EXECUTE statement - Allows DBMS SQL statements that are supported dynamically by the DBMS to be sent to the DBMS. Listed are some of the statements commonly passed with the EXECUTE statement. DELETE - Removes rows from DBMS tables. DROP - Removes DBMS views, tables, and indexes.
2 Host Systems and Environments 329 INSERT - Adds rows to a DBMS table. %PUT &sqlxmsg; CREATE TABLE - Creates a DBMS table. CREATE VIEW - Creates a DBMS view. Example 1 CREATE INDEX - Creates an index on one or more columns of a DBMS table. PROC SQL; EXECUTE ( DELETE FROM TABLE) WHERE STATUS = 4 ) DISCONNECT FROM DB2; QUIT; Example 2 starts off in typical fashion by invoking the SQL procedure and connecting to DB2 with the appropriate statements. Next we issue a PROC SQL query and specify the columns IDNUM and DEPTCODE to be l!elected from the DBMS. The FROM CONNECTION TO DB2 statement indicates that we are feeding the PROC SQL query with a DBMS query. The DBMS query follows as a SELECT statement with columns that correspond to the columns specified in the PROC SQL query. The DBMS query is accessing the DBMS table USER. EMPLOYEE as indicated by the FROM clause and the WHERE clause subsets the data. The statement %PUT &SQLXMSG;' is a useful SQL debugging tool. It displays the SAS macro variable SQLXMSG containing a description of the return code generated by the DBMS indicating the source of any errors. Also available is the macro variable &SQLXRC containing the return code alone. In example 1 we are connecting to DB2 and specifying the DB2 subsystem DB22. Next an execute statement is issued to carry out a delete command in DB2 that removes all rows from the table TABLE 1 where the column called STATUS is equal to 4. The user is then disconnected from DB2. The QUIT command ends PROC SQL. PUTTING THE PASS-THROUGH TO WORK Creating an SQL Table from a DBMS Table A good first step in using the Pass-Through facility is to simply access a DBMS table and use it to create a PROC SQL table. The PROC SQL table would then be available to SAS data steps and procedures as a SAS data set. Example 2 PROC SQL; SELECT IDNUM, DEPTCODE (SELECT IDNUM, DEPTCODE FROM USER. EMPLOYEE WHERE AGE < 65 ); Example 3 PROC SQL NOPRlNT; CREATE TABLE NEW. DATA AS SELECT * (SELECT '" FROM USER.PA YROLL WHERE STATUS = "ACTIVE" );
3 330 Host Systems and Environments %PUT &SQLXMSG; DATA XYZ1.DATA; SET NEW.DATA;... In Example 3 we are connecting to DB2 to select all of the columns in the DBMS table USER. PAYROLL where the column STATUS is equal to the string" ACTIVE". The result set creates the PROC SQL table NEW.DATA. The table NEW.DATA can then be used in a SAS data step for further processing. Notice that in example 3 the WHERE clause is issued in the DB2 query, inside the FROM CONNECTION TO DB2 clause, rather than in the PROC SQL query. The WHERE clause is valid in either place but by issuing it in DB2, performance is enhanced by limiting the number of rows "piped" through the Pass-Through window for SAS to process. Selecting rows with the WHERE clause is a job best handled up front by the DBMS to eliminate unnecessary rows before they get to SAS. It is important to understand the difference between relational objects ( tables, views, indexes) that exist in PROC SQL and relational objects that exist in a DBMS. In example 3 the table USER. PAYROLL is a DB2 table that is accessed using the Pass-Through facility under PROC SQL. USER. PAYROLL does not exist in PROC SQL but is made available by the Pass-Through facility. The table NEW. DATA on the other hand only exists in PROC SQL. A useful analogy is to think of the Pass-Through facility as a window between SAS and a DBMS allowing SAS data structures to be created from a DBMS. However, the flow of data through this window can go the other way as well. It is also possible to create DBMS data structures from SAS data. Creating a DBMS Table from SAS There are two steps needed to create a DBMS table using the Pass-Through facility. First, a DBMS table must be initially set up by issuing a CREATE Table command from within a Pass-Through facility EXECUTE statement. Next, the DBMS table is populated by issuing an INSERT command with column values from within a Pass-Through EXECUTE statement. Example 4 PROC SQL; EXECUTE (CREATE TABLE BOOK_STOCK ( TITLE CHAR(18), AUTHOR CHAR(18), STOCK_NO» %PUT &SQLXMSG; EXECUTE (INSERT INTO BOOK_STOCK ( TITLE, AUTHOR, STOCK_NO) V ALUES( 'CHRISTINE', 'KING', » EXECUTE (INSERT INTO BOOK_STOCK V ALUES( 'TOMMYKNOCKERS', 'KING', » EXECUTE ( INSERT INTO BOOK_STOCK V ALUES( 'BORN FREE', 'ADAMSON', » In example 4 a connection is made to the DB2 DBMS and a DB2 table called BOOK_STOCK is created with the columns TITLE, AUTHOR, and STOCK_NO. Notice that in the creation statement a character string format is specified for the TITLE and AUTHOR columns while the STOCK_NO column uses the default format to handle its numeric values. Once the table is created in the DBMS it can be loaded with data using the INSERT command. In the first INSERT statement, notice that the columns are specified before the VALUES statement but in the other two insertions the columns are not specified. This is because the DBMS automatically inserts columns in the order that they exist in the table when the columns are not specified in the INSERT statement. Creating Views Creating views is much like creating tables. As stated earlier, views are logical representations of tables and do not contain any physical data in the form of rows and
4 Host Systems and Environments 331 columns. However when a view is requested, the result appears as if it were a table. Since there is no physical storage associated with a view, they are particularly useful when storage is a concern. example 6 the DBMS view STOCK.HIEND93 is created by selecting all the columns from the DBMS table STOCK93.TEXTILES where the column PRICE is greater than Using Colwnn Functions Example 5 PROC SQL NOPRINT; CREATE VIEW RETIRED AS SELECT * (SELECT * FROM BASE. EMPLOYEE WHERE AGE > 65 OR STATUS = "R" ); In example 5 the PROC SQL view called RETIRED is created using all of the columns in the DBMS table BASE. EMPLOYEE that meet the criteria specified in the WHERE clause. Notice that the view RETIRED is an SQL view, not a DBMS view. Once the PROC SQL view is defined, it can be accessed by SAS data steps and procedures. Another powerful feature of the Pass-Through facility is the ability to do calculations against the columns of a DBMS table or view and store the results in the columns of a PROC SQL table or view. Calculations are performed in the DBMS environment by column functions ( also known as aggregate functions) and the results are passed as columns to PROC SQL. The column functions currently available in DB2 produce a single numeric value as a result and are defined as follows: AVG COUNT The average of the values in the The number of values in the MAX The largest value in the MIN SUM The Smallest value in the The sum of the values in the Example 6 PROC SQL; EXECUTE( CREATE VIEW STOCK.HIEND93 AS SELECT * FROM STOCK93.TEXTlLES WHERE PRICE > 2500) The benefit of using column functions with the Pass Through facility is the ability to perform calculations and create a PROC SQL data structure in one step, eliminating the need for further processing in SAS data steps and procedures. Views can also be created in a DBMS from within the EXECUTE statement of the Pass-Through facility. A DBMS view can only be created from DBMS tables or DBMS views, not from PROC SQL tables or views. In
5 332 Host Systems and Environments Exploiting The Link Example 7 PROC SQL NOPRINT; (CREATE TABLE SALES AS SELECT EMP_ID, EMP_NAME, EXPRESSN AS NUMSALES, EXPRESSO AS TOTSALES (SELECT EMPLOYEE_NUM, EMPLOYEE_NAME, COUNT(*), SUM(SALE_AMOUNn FROM SALES.QUARTER2 WHERE LOCATION = "R2" GROUP BY EMPLOYEE_NUM); In Example 7 a connection is made to DB2 to create the PROC SQL table SALES from the DB2 table SALES. QUARTER2. Selected from SALES. QUARTER2are the columns EMPLOYEE_ NUM and EMPLOYEE NAME as well as the results of the column functions COUNT(*) and SUM(SALE_AMOUNT). Since the GROUP BY clause is used to group the rows according to the value of the column EMPLOYEE_NUM, the column functions are done for each group. The results are passed to PROC SQL as the colunms EXPRESSN and EXPRESSO which are saved in the table SALES as the columns NUMSALES and TOTS ALES respectively as indicated by the alias clause AS. Note: The results of column functions performed by a DBMS are passed to PROC SQL as the following column names in the order are listed: EXPRESSN EXPRESSO EXPRESSl EXPRESS2 EXPRESS3 etc. Using the Pass-Through facility also offers a peculiar feature to exploit when creating PROC SQL tables. It is no secret to many SAS users that issuing the WHERE clause in SAS code while limiting observations with the OBS = option is forbidden. Likewise in a DBMS the only way to restrict the rows selected by an SQL query is with a WHERE clause. However, the Pass-Through facility offers the ability to use the WHERE clause and the OBS= option at the same time. Example 9 OPTIONS OBS=50; PROC SQL NOPRINT; CREATE TABLE RESULTl AS SELECT * (SELECT * FROM PROCESS.JUL Y WHERE DISTRICT = 51); %PUT &SQLXMSG; In Example 9 the PROC SQL table RESULTl is created by selecting all of the columns from the DB2 table PROCESS.JULY. The WHERE clause is used to select only the rows that have the value 51 in the column DISTRICT. Notice that the SAS option OBS=50 is in effect and therefore the table RESULT will contain a maximum of 50 rows. To understand how the WHERE clause can exist with the OBS= option, again it is important to know what exists in SAS and what exists in the DBMS and which processes are being carried out by each. In Example 9 the WHERE clause is being applied by DB2, invisible to SAS, and the result is being passed to SAS where the OBS= option is limiting the number of rows/observations in the SAS table/data set RESULT!. The net effect is that both methods of selecting rows are being used simultaneously to perform a task that neither SAS nor DB2 could do easily on their own. NFSUG '93 Proceedings
6 Host Systems and Environments 333 CONCLUSION In conclusion, the Pass-Through facility provides the tools necessary to access and manipulate DBMS relational data from within SAS. The Pass-Through facility is a powerful window between SAS and a DBMS that promotes the quick and easy flow of data to and from a DBMS. With a basic knowledge of SQL and a few Pass Through commands, a SAS user can quickly and efficiently bridge the gap between SAS and the relational objects of a DBMS. SAS and SASI ACCESS are registered trademarks of SAS Institute Inc., Cary, NC. DB2 is a registered trademark of International Business Machines Corporation. REFERENCES 1. SAS Technical Report P-221. SAS/ ACCESS Software: Changes and Enhancements. Release 6.07, SAS Institute Inc., Cary, NC. 2. SAS Guide to the SOL Procedure. Usage and Reference. Version 6. First Edition, SAS Institute Inc., Cary, NC. 3. SAS/ACCESS Interface to DB2. Usage and Reference. Version 6. First Edition, SAS Institute Inc., Cary, NC. 4. Renade, J., Sehgal, M., Elkind, P., & Grossman, J. (1991). DB2 - Concepts. Programming. and Design. New York: McGraw Hill, Inc. 5. Date, C. J., White, C. J. (1988). A Guide to DB2 - Second Edition. New York: Addison - Wesley. CONTACT INFORMATION Timothy Pruitt Corporate Cost Management Inc Piccard Drive Rockville, MD NFSUG '93 Proceedings
CHAPTER 1 Overview of SAS/ACCESS Interface to Relational Databases
3 CHAPTER 1 Overview of SAS/ACCESS Interface to Relational Databases About This Document 3 Methods for Accessing Relational Database Data 4 Selecting a SAS/ACCESS Method 4 Methods for Accessing DBMS Tables
More information9.1 SAS. SQL Query Window. User s Guide
SAS 9.1 SQL Query Window User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS 9.1 SQL Query Window User s Guide. Cary, NC: SAS Institute Inc. SAS
More informationSAS PASSTHRU to Microsoft SQL Server using ODBC Nina L. Werner, Madison, WI
Paper SA-03-2014 SAS PASSTHRU to Microsoft SQL Server using ODBC Nina L. Werner, Madison, WI ABSTRACT I wish I could live in SAS World I do much of my data analysis there. However, my current environment
More informationCHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY
CHAPTER 2 DATABASE MANAGEMENT SYSTEM AND SECURITY 2.1 Introduction In this chapter, I am going to introduce Database Management Systems (DBMS) and the Structured Query Language (SQL), its syntax and usage.
More informationOracle Database: SQL and PL/SQL Fundamentals
Oracle University Contact Us: 1.800.529.0165 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This course is designed to deliver the fundamentals of SQL and PL/SQL along
More informationOracle Database: SQL and PL/SQL Fundamentals
Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to
More informationOracle SQL. Course Summary. Duration. Objectives
Oracle SQL Course Summary Identify the major structural components of the Oracle Database 11g Create reports of aggregated data Write SELECT statements that include queries Retrieve row and column data
More informationSQL - QUICK GUIDE. Allows users to access data in relational database management systems.
http://www.tutorialspoint.com/sql/sql-quick-guide.htm SQL - QUICK GUIDE Copyright tutorialspoint.com What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle University Contact Us: + 38516306373 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the
More informationCounting the Ways to Count in SAS. Imelda C. Go, South Carolina Department of Education, Columbia, SC
Paper CC 14 Counting the Ways to Count in SAS Imelda C. Go, South Carolina Department of Education, Columbia, SC ABSTRACT This paper first takes the reader through a progression of ways to count in SAS.
More informationSAS Data Views: A Virtual View of Data John C. Boling, SAS Institute Inc., Cary, NC
SAS Data Views: A Virtual View of Data John C. Boling, SAS Institute Inc., Cary, NC ABSTRACT The concept of a SAS data set has been extended or broadened in Version 6 of the SAS System. Two SAS file structures
More informationSQL Pass-Through and the ODBC Interface
SQL Pass-Through and the ODBC Interface Jessica Hampton, CIGNA Corporation, Bloomfield, CT ABSTRACT Does SAS implicit SQL pass-through sometimes fail to meet your needs? Do you sometimes need to communicate
More informationPaper 70-27 An Introduction to SAS PROC SQL Timothy J Harrington, Venturi Partners Consulting, Waukegan, Illinois
Paper 70-27 An Introduction to SAS PROC SQL Timothy J Harrington, Venturi Partners Consulting, Waukegan, Illinois Abstract This paper introduces SAS users with at least a basic understanding of SAS data
More informationHandling Missing Values in the SQL Procedure
Handling Missing Values in the SQL Procedure Danbo Yi, Abt Associates Inc., Cambridge, MA Lei Zhang, Domain Solutions Corp., Cambridge, MA ABSTRACT PROC SQL as a powerful database management tool provides
More informationIntroduction to Proc SQL Steven First, Systems Seminar Consultants, Madison, WI
Paper #HW02 Introduction to Proc SQL Steven First, Systems Seminar Consultants, Madison, WI ABSTRACT PROC SQL is a powerful Base SAS Procedure that combines the functionality of DATA and PROC steps into
More information3.GETTING STARTED WITH ORACLE8i
Oracle For Beginners Page : 1 3.GETTING STARTED WITH ORACLE8i Creating a table Datatypes Displaying table definition using DESCRIBE Inserting rows into a table Selecting rows from a table Editing SQL buffer
More informationKatie Minten Ronk, Steve First, David Beam Systems Seminar Consultants, Inc., Madison, WI
Paper 191-27 AN INTRODUCTION TO PROC SQL Katie Minten Ronk, Steve First, David Beam Systems Seminar Consultants, Inc., Madison, WI ABSTRACT PROC SQL is a powerful Base SAS 7 Procedure that combines the
More informationDuration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff
D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led
More informationSimple Rules to Remember When Working with Indexes Kirk Paul Lafler, Software Intelligence Corporation, Spring Valley, California
Simple Rules to Remember When Working with Indexes Kirk Paul Lafler, Software Intelligence Corporation, Spring Valley, California Abstract SAS users are always interested in learning techniques related
More information2Creating Reports: Basic Techniques. Chapter
2Chapter 2Creating Reports: Chapter Basic Techniques Just as you must first determine the appropriate connection type before accessing your data, you will also want to determine the report type best suited
More informationRelational Database: Additional Operations on Relations; SQL
Relational Database: Additional Operations on Relations; SQL Greg Plaxton Theory in Programming Practice, Fall 2005 Department of Computer Science University of Texas at Austin Overview The course packet
More informationInstant SQL Programming
Instant SQL Programming Joe Celko Wrox Press Ltd. INSTANT Table of Contents Introduction 1 What Can SQL Do for Me? 2 Who Should Use This Book? 2 How To Use This Book 3 What You Should Know 3 Conventions
More informationCS2Bh: Current Technologies. Introduction to XML and Relational Databases. The Relational Model. The relational model
CS2Bh: Current Technologies Introduction to XML and Relational Databases Spring 2005 The Relational Model CS2 Spring 2005 (LN6) 1 The relational model Proposed by Codd in 1970. It is the dominant data
More informationUsing SAS Views and SQL Views Lynn Palmer, State of California, Richmond, CA
Using SAS Views and SQL Views Lynn Palmer, State of Califnia, Richmond, CA ABSTRACT Views are a way of simplifying access to your ganization s database while maintaining security. With new and easier ways
More informationSES Project v 9.0 SES/CAESAR QUERY TOOL. Running and Editing Queries. PS Query
SES Project v 9.0 SES/CAESAR QUERY TOOL Running and Editing Queries PS Query Table Of Contents I - Introduction to Query:... 3 PeopleSoft Query Overview:... 3 Query Terminology:... 3 Navigation to Query
More informationPerforming Queries Using PROC SQL (1)
SAS SQL Contents Performing queries using PROC SQL Performing advanced queries using PROC SQL Combining tables horizontally using PROC SQL Combining tables vertically using PROC SQL 2 Performing Queries
More informationChapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification
Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Outline More Complex SQL Retrieval Queries
More informationDatabase Programming with PL/SQL: Learning Objectives
Database Programming with PL/SQL: Learning Objectives This course covers PL/SQL, a procedural language extension to SQL. Through an innovative project-based approach, students learn procedural logic constructs
More informationThe Query Builder: The Swiss Army Knife of SAS Enterprise Guide
Paper 1557-2014 The Query Builder: The Swiss Army Knife of SAS Enterprise Guide ABSTRACT Jennifer First-Kluge and Steven First, Systems Seminar Consultants, Inc. The SAS Enterprise Guide Query Builder
More informationDatabase Administration with MySQL
Database Administration with MySQL Suitable For: Database administrators and system administrators who need to manage MySQL based services. Prerequisites: Practical knowledge of SQL Some knowledge of relational
More informationHow to Reduce the Disk Space Required by a SAS Data Set
How to Reduce the Disk Space Required by a SAS Data Set Selvaratnam Sridharma, U.S. Census Bureau, Washington, DC ABSTRACT SAS datasets can be large and disk space can often be at a premium. In this paper,
More informationODBC: Windows to the Outside World
ODBC: Windows to the Outside World S. David Riba, JADE Tech, Inc., Clearwater, FL ABSTRAcr Until now SAS" datasets have remained largely inaccessible to non-sas software packages. This has led to requests
More informationTop Ten SAS DBMS Performance Boosters for 2009 Howard Plemmons, SAS Institute Inc., Cary, NC
Paper 309-2009 Top Ten SAS DBMS Performance Boosters for 2009 Howard Plemmons, SAS Institute Inc, Cary, NC ABSTRACT Gleaned from internal development efforts and SAS technical support, this paper tracks
More informationRetrieving Data from Large DB2 Tables Based on Keys in SAS : The Sequel
Introduction and Overview Over the last few years, a number of papers have been presented at SUGI and regional conferences discussing the problem of how to extract data from one or more DB2 tables when
More information12 File and Database Concepts 13 File and Database Concepts A many-to-many relationship means that one record in a particular record type can be relat
1 Databases 2 File and Database Concepts A database is a collection of information Databases are typically stored as computer files A structured file is similar to a card file or Rolodex because it uses
More informationBeginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition
Beginning C# 5.0 Databases Second Edition Vidya Vrat Agarwal Contents J About the Author About the Technical Reviewer Acknowledgments Introduction xviii xix xx xxi Part I: Understanding Tools and Fundamentals
More informationTIM 50 - Business Information Systems
TIM 50 - Business Information Systems Lecture 15 UC Santa Cruz March 1, 2015 The Database Approach to Data Management Database: Collection of related files containing records on people, places, or things.
More informationDATABASE DESIGN AND IMPLEMENTATION II SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO. Sault College
-1- SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO Sault College COURSE OUTLINE COURSE TITLE: CODE NO. : SEMESTER: 4 PROGRAM: PROGRAMMER (2090)/PROGRAMMER ANALYST (2091) AUTHOR:
More informationOracle Database: SQL and PL/SQL Fundamentals NEW
Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals
More informationQuery-by-Example (QBE)
Query-by-Example (QBE) Module 3, Lecture 6 Example is the school of mankind, and they will learn at no other. -- Edmund Burke (1729-1797) Database Management Systems, R. Ramakrishnan 1 QBE: Intro A GUI
More informationAccess Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database Microsoft Office 2013 Objectives Session 1.1 Learn basic database concepts and terms Start and exit Access Explore the Microsoft Access window and Backstage view Create
More informationPUBLIC. How to Use E-Mail in SAP Business One. Solutions from SAP. SAP Business One 2005 A SP01
PUBLIC How to Use E-Mail in SAP Business One Solutions from SAP SAP Business One 2005 A SP01 February 2007 Contents Purpose... 3 Sending an E-Mail... 4 Use... 4 Prerequisites... 4 Procedure... 4 Adding
More informationProgramming with SQL
Unit 43: Programming with SQL Learning Outcomes A candidate following a programme of learning leading to this unit will be able to: Create queries to retrieve information from relational databases using
More informationT-SQL STANDARD ELEMENTS
T-SQL STANDARD ELEMENTS SLIDE Overview Types of commands and statement elements Basic SELECT statements Categories of T-SQL statements Data Manipulation Language (DML*) Statements for querying and modifying
More informationOne problem > Multiple solutions; various ways of removing duplicates from dataset using SAS Jaya Dhillon, Louisiana State University
One problem > Multiple solutions; various ways of removing duplicates from dataset using SAS Jaya Dhillon, Louisiana State University ABSTRACT In real world, analysts seldom come across data which is in
More informationTrendWorX32 SQL Query Engine V9.2 Beta III
TrendWorX32 SQL Query Engine V9.2 Beta III Documentation (Preliminary November 2009) OPC Automation at your fingertips 1. Introduction TrendWorX32 Logger logs data to a database. You can use the TrendWorX32
More informationDatabase 10g Edition: All possible 10g features, either bundled or available at additional cost.
Concepts Oracle Corporation offers a wide variety of products. The Oracle Database 10g, the product this exam focuses on, is the centerpiece of the Oracle product set. The "g" in "10g" stands for the Grid
More informationSample- for evaluation purposes only. Advanced Crystal Reports. TeachUcomp, Inc.
A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc. 2011 Advanced Crystal Reports TeachUcomp, Inc. it s all about you Copyright: Copyright 2011 by TeachUcomp, Inc. All rights reserved.
More informationIT2304: Database Systems 1 (DBS 1)
: Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation
More informationMicrosoft Excel 2010 Part 3: Advanced Excel
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Excel 2010 Part 3: Advanced Excel Winter 2015, Version 1.0 Table of Contents Introduction...2 Sorting Data...2 Sorting
More informationThe Relational Model. Why Study the Relational Model? Relational Database: Definitions
The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in
More informationThe SET Statement and Beyond: Uses and Abuses of the SET Statement. S. David Riba, JADE Tech, Inc., Clearwater, FL
The SET Statement and Beyond: Uses and Abuses of the SET Statement S. David Riba, JADE Tech, Inc., Clearwater, FL ABSTRACT The SET statement is one of the most frequently used statements in the SAS System.
More information9.1 Supplement for SAS/ACCESS. Microsoft SQL Server. SAS/ACCESS for Relational Databases
SAS/ACCESS 9.1 Supplement for Microsoft SQL Server SAS/ACCESS for Relational Databases The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS/ACCESS 9.1 Supplement
More informationC H A P T E R 1 Introducing Data Relationships, Techniques for Data Manipulation, and Access Methods
C H A P T E R 1 Introducing Data Relationships, Techniques for Data Manipulation, and Access Methods Overview 1 Determining Data Relationships 1 Understanding the Methods for Combining SAS Data Sets 3
More informationTune That SQL for Supercharged DB2 Performance! Craig S. Mullins, Corporate Technologist, NEON Enterprise Software, Inc.
Tune That SQL for Supercharged DB2 Performance! Craig S. Mullins, Corporate Technologist, NEON Enterprise Software, Inc. Table of Contents Overview...................................................................................
More informationa presentation by Kirk Paul Lafler SAS Consultant, Author, and Trainer E-mail: KirkLafler@cs.com
a presentation by Kirk Paul Lafler SAS Consultant, Author, and Trainer E-mail: KirkLafler@cs.com 1 Copyright Kirk Paul Lafler, 1992-2010. All rights reserved. SAS is the registered trademark of SAS Institute
More informationHow To Create A Table In Sql 2.5.2.2 (Ahem)
Database Systems Unit 5 Database Implementation: SQL Data Definition Language Learning Goals In this unit you will learn how to transfer a logical data model into a physical database, how to extend or
More informationMicrosoft' Excel & Access Integration
Microsoft' Excel & Access Integration with Office 2007 Michael Alexander and Geoffrey Clark J1807 ; pwiueyb Wiley Publishing, Inc. Contents About the Authors Acknowledgments Introduction Part I: Basic
More informationSAS 9.1. ETL Studio: User s Guide
SAS 9.1 ETL Studio: User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS 9.1 ETL Studio: User s Guide. Cary, NC: SAS Institute Inc. SAS 9.1 ETL Studio:
More informationICAB4136B Use structured query language to create database structures and manipulate data
ICAB4136B Use structured query language to create database structures and manipulate data Release: 1 ICAB4136B Use structured query language to create database structures and manipulate data Modification
More informationOracle Database 12c: Introduction to SQL Ed 1.1
Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Introduction to SQL Ed 1.1 Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training helps you write subqueries,
More informationSQL Server. 1. What is RDBMS?
SQL Server 1. What is RDBMS? Relational Data Base Management Systems (RDBMS) are database management systems that maintain data records and indices in tables. Relationships may be created and maintained
More informationIntroduction to Microsoft Jet SQL
Introduction to Microsoft Jet SQL Microsoft Jet SQL is a relational database language based on the SQL 1989 standard of the American Standards Institute (ANSI). Microsoft Jet SQL contains two kinds of
More informationCA VM:Operator r3. Product Overview. Business Value. Delivery Approach
PRODUCT SHEET: CA VM:OPERATOR CA VM:Operator r3 CA VM:Operator is an automated console message management system for z/vm and mainframe Linux environments. It allows you to minimize human intervention
More informationCreating QBE Queries in Microsoft SQL Server
Creating QBE Queries in Microsoft SQL Server When you ask SQL Server or any other DBMS (including Access) a question about the data in a database, the question is called a query. A query is simply a question
More informationFive Little Known, But Highly Valuable, PROC SQL Programming Techniques. a presentation by Kirk Paul Lafler
Five Little Known, But Highly Valuable, PROC SQL Programming Techniques a presentation by Kirk Paul Lafler Copyright 1992-2014 by Kirk Paul Lafler and Software Intelligence Corporation. All rights reserved.
More informationAdvanced Query for Query Developers
for Developers This is a training guide to step you through the advanced functions of in NUFinancials. is an ad-hoc reporting tool that allows you to retrieve data that is stored in the NUFinancials application.
More informationPaper TU_09. Proc SQL Tips and Techniques - How to get the most out of your queries
Paper TU_09 Proc SQL Tips and Techniques - How to get the most out of your queries Kevin McGowan, Constella Group, Durham, NC Brian Spruell, Constella Group, Durham, NC Abstract: Proc SQL is a powerful
More informationUsing the SQL Procedure
Using the SQL Procedure Kirk Paul Lafler Software Intelligence Corporation Abstract The SQL procedure follows most of the guidelines established by the American National Standards Institute (ANSI). In
More informationSAS Client-Server Development: Through Thick and Thin and Version 8
SAS Client-Server Development: Through Thick and Thin and Version 8 Eric Brinsfield, Meridian Software, Inc. ABSTRACT SAS Institute has been a leader in client-server technology since the release of SAS/CONNECT
More informationEffective Use of SQL in SAS Programming
INTRODUCTION Effective Use of SQL in SAS Programming Yi Zhao Merck & Co. Inc., Upper Gwynedd, Pennsylvania Structured Query Language (SQL) is a data manipulation tool of which many SAS programmers are
More informationUSING SAS WITH ORACLE PRODUCTS FOR DATABASE MANAGEMENT AND REPORTING
USING SAS WITH ORACLE PRODUCTS FOR DATABASE MANAGEMENT AND REPORTING Henry W. Buffum, R. O. W. ScIences, Inc. Darryl J. Keith, U.S. Environmental Protection Agency Abstract: Data for a large environmental
More informationChapter 1 Overview of the SQL Procedure
Chapter 1 Overview of the SQL Procedure 1.1 Features of PROC SQL...1-3 1.2 Selecting Columns and Rows...1-6 1.3 Presenting and Summarizing Data...1-17 1.4 Joining Tables...1-27 1-2 Chapter 1 Overview of
More informationAccessing Your Database with JMP 10 JMP Discovery Conference 2012 Brian Corcoran SAS Institute
Accessing Your Database with JMP 10 JMP Discovery Conference 2012 Brian Corcoran SAS Institute JMP provides a variety of mechanisms for interfacing to other products and getting data into JMP. The connection
More informationObjectives of SQL. Terminology for Relational Model. Introduction to SQL
Karlstad University Department of Information Systems Adapted for a textbook by Date C. J. An Introduction to Database Systems Pearson Addison Wesley, 2004 Introduction to SQL Remigijus GUSTAS Phone: +46-54
More information- Eliminating redundant data - Ensuring data dependencies makes sense. ie:- data is stored logically
Normalization of databases Database normalization is a technique of organizing the data in the database. Normalization is a systematic approach of decomposing tables to eliminate data redundancy and undesirable
More informationSUGI 29 Coders' Corner
Paper 074-29 Tales from the Help Desk: Solutions for Simple SAS Mistakes Bruce Gilsen, Federal Reserve Board INTRODUCTION In 19 years as a SAS consultant at the Federal Reserve Board, I have seen SAS users
More informationPart A: Data Definition Language (DDL) Schema and Catalog CREAT TABLE. Referential Triggered Actions. CSC 742 Database Management Systems
CSC 74 Database Management Systems Topic #0: SQL Part A: Data Definition Language (DDL) Spring 00 CSC 74: DBMS by Dr. Peng Ning Spring 00 CSC 74: DBMS by Dr. Peng Ning Schema and Catalog Schema A collection
More informationData Mining Commonly Used SQL Statements
Description: Guide to some commonly used SQL OS Requirement: Win 2000 Pro/Server, XP Pro, Server 2003 General Requirement: You will need a Relational Database (SQL server, MSDE, Access, Oracle, etc), Installation
More informationAn Oracle White Paper June 2012. Creating an Oracle BI Presentation Layer from Imported Oracle OLAP Cubes
An Oracle White Paper June 2012 Creating an Oracle BI Presentation Layer from Imported Oracle OLAP Cubes Introduction Oracle Business Intelligence Enterprise Edition version 11.1.1.5 and later has the
More informationThe Art of Designing HOLAP Databases Mark Moorman, SAS Institute Inc., Cary NC
Paper 139 The Art of Designing HOLAP Databases Mark Moorman, SAS Institute Inc., Cary NC ABSTRACT While OLAP applications offer users fast access to information across business dimensions, it can also
More informationODBC Chapter,First Edition
1 CHAPTER 1 ODBC Chapter,First Edition Introduction 1 Overview of ODBC 2 SAS/ACCESS LIBNAME Statement 3 Data Set Options: ODBC Specifics 15 DBLOAD Procedure: ODBC Specifics 25 DBLOAD Procedure Statements
More informationRelational Algebra and SQL
Relational Algebra and SQL Johannes Gehrke johannes@cs.cornell.edu http://www.cs.cornell.edu/johannes Slides from Database Management Systems, 3 rd Edition, Ramakrishnan and Gehrke. Database Management
More informationRelease 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access
Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix Jennifer Clegg, SAS Institute Inc., Cary, NC Eric Hill, SAS Institute Inc., Cary, NC ABSTRACT Release 2.1 of SAS
More informationACCESS 2007 BASICS. Best Practices in MS Access. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818) 677-1700
Information Technology MS Access 2007 Users Guide ACCESS 2007 BASICS Best Practices in MS Access IT Training & Development (818) 677-1700 Email: training@csun.edu Website: www.csun.edu/it/training Access
More informationWeb Application Disassembly with ODBC Error Messages By David Litchfield Director of Security Architecture @stake http://www.atstake.
Web Application Disassembly with ODBC Error Messages By David Litchfield Director of Security Architecture @stake http://www.atstake.com Introduction This document describes how to subvert the security
More informationIT2305 Database Systems I (Compulsory)
Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this
More informationEncoding the Password
SESUG 2012 Paper CT-28 Encoding the Password A low maintenance way to secure your data access Leanne Tang, National Agriculture Statistics Services USDA, Washington DC ABSTRACT When users access data in
More informationDatabase Query 1: SQL Basics
Database Query 1: SQL Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Using Structured Query Language (SQL) to get the data you want from relational databases Learning basic
More informationUQC103S1 UFCE47-20-1. Systems Development. uqc103s/ufce47-20-1 PHP-mySQL 1
UQC103S1 UFCE47-20-1 Systems Development uqc103s/ufce47-20-1 PHP-mySQL 1 Who? Email: uqc103s1@uwe.ac.uk Web Site www.cems.uwe.ac.uk/~jedawson www.cems.uwe.ac.uk/~jtwebb/uqc103s1/ uqc103s/ufce47-20-1 PHP-mySQL
More informationWhite Paper. PiLab Technology Performance Test, Deep Queries. pilab.pl
White Paper PiLab Technology Performance Test, Deep Queries pilab.pl Table of Content Forward... 3 Summary of Results... 3 Technical Introduction... 3 Hardware... 4 Disk read/write speed... 4 Network speed
More informationImproving Maintenance and Performance of SQL queries
PaperCC06 Improving Maintenance and Performance of SQL queries Bas van Bakel, OCS Consulting, Rosmalen, The Netherlands Rick Pagie, OCS Consulting, Rosmalen, The Netherlands ABSTRACT Almost all programmers
More informationIntro to Embedded SQL Programming for ILE RPG Developers
Intro to Embedded SQL Programming for ILE RPG Developers Dan Cruikshank DB2 for i Center of Excellence 1 Agenda Reasons for using Embedded SQL Getting started with Embedded SQL Using Host Variables Using
More informationOracle Database: Introduction to SQL
Oracle University Contact Us: 1.800.529.0165 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training teaches you how to write subqueries,
More informationConfiguring an Alternative Database for SAS Web Infrastructure Platform Services
Configuration Guide Configuring an Alternative Database for SAS Web Infrastructure Platform Services By default, SAS Web Infrastructure Platform Services is configured to use SAS Framework Data Server.
More informationChapter 5. SQL: Queries, Constraints, Triggers
Chapter 5 SQL: Queries, Constraints, Triggers 1 Overview: aspects of SQL DML: Data Management Language. Pose queries (Ch. 5) and insert, delete, modify rows (Ch. 3) DDL: Data Definition Language. Creation,
More informationIBM Sterling Control Center
IBM Sterling Control Center System Administration Guide Version 5.3 This edition applies to the 5.3 Version of IBM Sterling Control Center and to all subsequent releases and modifications until otherwise
More informationScatter Chart. Segmented Bar Chart. Overlay Chart
Data Visualization Using Java and VRML Lingxiao Li, Art Barnes, SAS Institute Inc., Cary, NC ABSTRACT Java and VRML (Virtual Reality Modeling Language) are tools with tremendous potential for creating
More informationChapter 9, More SQL: Assertions, Views, and Programming Techniques
Chapter 9, More SQL: Assertions, Views, and Programming Techniques 9.2 Embedded SQL SQL statements can be embedded in a general purpose programming language, such as C, C++, COBOL,... 9.2.1 Retrieving
More informationReading Delimited Text Files into SAS 9 TS-673
Reading Delimited Text Files into SAS 9 TS-673 Reading Delimited Text Files into SAS 9 i Reading Delimited Text Files into SAS 9 Table of Contents Introduction... 1 Options Available for Reading Delimited
More information