MC Press Online
Welcome to the MC Press Online!
Need help withour eBooks?
Contact PublishersRow.com
Click here, to go to our main store

  MC Press Online eBookStore  

SQL Built-In Functions and Stored Procedures
preview of book SQL Built-In Functions and Stored Procedures
text of book SQL Built-In Functions and Stored Procedures

SQL Built-In Functions and Stored Procedures

Author:
Publisher: MC Press Online
Publication Date: May 2005
Subject: Computer: Database -- SQL
Number of Pages: 177

Free Preview    Email to Friend   Add to wish list
 Available as: (for format`s description click on its name)
Individual E-Version (PDF) Individual E-Version (PDF) ISBN: 978-1-58347-054-1  
$33.99
 
 Reg.: $
49.99 per N pages
 You Save: 
$16.00 (32%)
 Online  Open CopyPrint    
all time
Printed Edition   see MC Press Online    
About this title
Stored procedures and built-in functions can greatly expand the power and usefulness of SQL, but surprisingly these highly useful tools remain untapped by many programmers. For programmers who are new to the subject or those who want to expand on what they already know, this book provides a terrific introduction to the creation and use of built-in functions and stored procedures under OS/400 and i5/OS. But what are they?

Built-in functions are a part of practically every programming language and can be a big boost to productivity by identifying and isolating functions that need to be executed repeatedly. SQL makes particularly good use of its built-in functions. Stored procedures are programs that can be called from within SQLand other programming languages, such as RPGto process entire datasets. This book will put you on the fast track to using and writing both effectively.

After you learn the basics of these powerful tools, you'll go on to explore some of the stored procedures and functions included with SQL on the iSeries as part of OS/400 and i5/OS. Author Mike Faust even explains the process of developing custom built-in functions for your own use and has included a stored procedure that can be used to create a crosstab or pivot table representation of supplied data.

This book is the tool you need to boost the power of your i5/OS SQL programming skills.

With SQL Built-In Functions and Stored Procedures, you will:
  • Discover how to perform routine maintenance functions, such as copying a file or rebuilding an existing table without losing the data in the existing table
  • Learn how to build data files, modify a library list, and compile programs
  • Practice using example programs that not only teach, but also make excellent additions to any programmer's library
  • Learn how to use 11 different functions, including functions to edit numeric values for print with commas, decimal points, and currency symbols; a function that returns the distance in miles between two ZIP codes; functions to convert date and currency to a text string; and more
  • Gain access to complete code on the Web for each function, which you can use directly in your own programs.
About author
Mike Faust
Mike Faust has been working with midrange systems and personal computers for over a decade, wearing every hat from network administrator to software developer to MIS manager. During that time, he has focused his attention on integration between platforms, and he has used that multiplatform knowledge to stretch perceived programming limitations by developing new and sometimes surprising programming techniques. Mike has also written more than a dozen technical articles for the former Midrange Computing magazine, one of which was a finalist for the 2000 Maggie magazine awards in the Best How-to Article category.

Contents
CONTENTS
Introduction

Chapter 1: SQL on the iSeries
Software Requirements
Exploring SQL Statements
From Language Structure to Functions

Chapter 2: Built-In Functions
Built-In Functions
Functions vs. Procedures

Chapter 3: Creating Custom Stored Procedures
Create Procedure
Procedure Language
Sample Procedures
Stored Procedure Wrap-Up

Chapter 4: Creating User-Defined Functions
Language Elements
Beyond UDFs

Chapter 5: Using Functions and Procedures
Interactive SQL
Query Manager
Embedded SQL
ADO/ODBC
JDBC
Make the Most of Stored Procedures and Functions

Appendix: Example Installation Instructions
SQL
CL, RPG, and SQLRPG
Active Server Pages
Java
Save Files
Additional Examples

Index
Related titles
Database Design and SQL for DB2Database Design and SQL for DB2
Mastering IBM iMastering IBM i
Programming in RPG IVProgramming in RPG IV
SQL for eServer i5 and iSeriesSQL for eServer i5 and iSeries
Programmer's Guide to iSeries NavigatorProgrammer's Guide to iSeries Navigator
 
  Special Offer Code  
Enter your Special Offer Code here:
  Search for  

  Our Products  
Browse all »»
HTML for the Business Developer
From Idea to Print, Chapter 05: Developing the First Draft
IBM i Security Administration and Compliance

If download option is selected, Adobe Acrobat 5.0 or lateris requiredto read our e-books*


*Windows PC, Mac OS9/OSX, and Linux