Senior Staff Engineer, Sun Microsystems

Slides:



Advertisements
Similar presentations
Sml2java a source to source translator Justin Koser, Haakon Larsen, Jeffrey Vaughan PLI 2003 DP-COOL.
Advertisements

PL/SQL : Stop making the same performance mistakes
Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Topic 10 Java Memory Management. 1-2 Memory Allocation in Java When a program is being executed, separate areas of memory are allocated for each class.
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
Designing a Database Unleashing the Power of Relational Database Design.
Chapter 14: Advanced Topics: DBMS, SQL, and ASP.NET
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
Tutorial 11: Connecting to External Data
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
Module 3: Table Selection
9 Chapter Nine Extracting and Transforming Data with SQL Server 2000.
Native Support for Web Services  Native Web services access  Enables cross platform interoperability  Reduces middle-tier dependency (no IIS)  Simplifies.
Self Guided Tour for Query V8.4 Basic Features. 2 This Self Guided Tour is meant as a review only for Query V8.4 Basic Features and not as a substitute.
Selene Bainum RiteTech LLC.  Doing ColdFusion & SQL development for more than 1/3 of my lifetime  Chief RiteTech  RiteTech is my company.
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 38 Advanced Java Database.
PowerBuilder Online Courses - by Prasad Bodepudi
SQL Server Indexes Indexes. Overview Indexes are used to help speed search results in a database. A careful use of indexes can greatly improve search.
Oracle Data Integrator Procedures, Advanced Workflows.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Demo: Power Tools for P8 Presenter: Jay Bowen Demonstration Topic: Choice List Features Demo URL below Power Tools Choice List Support 1. Native P8 Choice.
Stored Procedure. Objective At the end of the session you will be able to know :  What are Stored Procedures?  Create a Stored Procedure  Execute a.
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms.
PowerBuilder Online Courses - by Prasad Bodepudi Database Painter Primary & Foreign Keys Extended Attributes PowerBuilder System Tables Database Profiles.
Normalizing Database Files Professor Ralph Westfall May, 2011.
Module 5: Implementing Merge Replication. Overview Understanding Merge Replication Architecture Implementing Conflict Resolution Planning and Deploying.
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
02 | Data Flow – Extract Data Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons Great.
NSF DUE ; Wen M. Andrews J. Sargeant Reynolds Community College Richmond, Virginia.
Learningcomputer.com SQL Server 2008 –Views, Functions and Stored Procedures.
DAY 21: ACCESS CHAPTER 6 & 7 Tazin Afrin October 31,
Performance. Performance Performance is a critical issue especially in a multi-user environment. Benchmarking is one way of testing this.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
Database Overview What is a database? What types of databases are there? How are databases more powerful than spreadsheets?
Understanding Core Database Concepts Lesson 1. Objectives.
FHIR and Relational Databases
آشنایی با نرم افزار Microsoft Access
Dept. of Computer & Information Sciences
Creating LOVs and Editors
CS422 Principles of Database Systems Course Overview
IS444: Modern tools for applications development
Objectives Create an action query to create a table
Listing 9.1 ShowLocalConnection.aspx
IS444: Modern tools for applications development
Latihan Create a separate table with the same structure as the Booking table to hold archive records. Using the INSERT statement, copy the records from.
Database Management  .
Translation of ER-diagram into Relational Schema
Design and Consume DataWindows in Visual Studio 2005
Searching Business Data with MOSS 2007 Enterprise Search
Client Access, Queries, Stored Procedures, JDBC
Populating a Data Warehouse
CIS16 Application Programming with Visual Basic
Populating a Data Warehouse
Data Model.
Data Management Innovations 2017 High level overview of DB
Creating Noninput Items
Creating and Managing Database Tables
Chapter 8 Advanced SQL.
Dynamic Sql Not so scary?
List Based Objects.
Understanding Core Database Concepts
September 12-14, 2018 Raleigh, NC.
An Overview of GoldenGate Replication
Presentation transcript:

Senior Staff Engineer, Sun Microsystems Saur Saucer Separation Rick Hillegas Senior Staff Engineer, Sun Microsystems

Derby-style table functions to be introduced in Derby 10.4 Use SQL on non-relational data Tear-off subsets of other databases

Overview of Table Functions Log Files XML Reports External DBMSes Snapshots

O Overview of Table Functions Implementing a Table Function Demo Code Creating a Table Function Invoking a Table Function Optimizing a Table Function O

Implementing a Table Function Implement java.sql.ResultSet – extend a demo class if appropriate Stub out all methods except: next() close() getXXX() -- for the datatypes of your columns Create a public static method which returns your implementation of java.sql.ResultSet

Demo code in java/demo/vtis... Table Function for rows of String columns Table Function wrapping a text file Table Function wrapping a properties file Table Function wrapping an xml file Table Function wrapping external query Subscription to foreign SQL data

Creating a Table Function

Invoking a Table Function

Optimizing a Table Function Advanced topic Class containing Table Function must have a 0-arg constructor It must implement org.apache.derby.vti.VTICosting

Log Files Plain text log files XML log files

Plain text log files Have regular structure Sequence of records (rows) Each record has fields (columns) SQL is a great tool for mining these records

XML Log Files Again, regular structure Repeating elements (rows) With attributes/sub-elements (columns) SQL is a great tool for mining these files

Reports Exported in XML Easy to mine using SQL and Table Functions

External DBMSes Foreign DBMS Data Migrating Foreign Data into Derby

Foreign DBMS data Use Table Functions to import data from foreign databases Demo classes make it easy to create a Table Function which runs a query against a foreign database

Migrate foreign data into Derby Use Demo classes to create Table Function which runs a foreign query Use 'create table ... as select' to create Derby table from Table Function shape Use 'insert into ... select * from' to pipe data from foreign database into Derby

Snapshots Use Demo classes to declare a parameterized subscription to foreign data Use Demo procedures to plug in new parameters and tear-off a fresh copy of the subscription