RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague
|
|
- Hugo Williams
- 8 years ago
- Views:
Transcription
1 course: Database Applications (NDBI026) WS2015/16 RNDr. Michal Kopecký, Ph.D. Department of Software Engineering, Faculty of Mathematics and Physics, Charles University in Prague
2 student duties final DB application DB layers Application layer in DB (procedures/functions/triggers, etc.) Either in Oracle or MS SQL database Attendance recommended (but not mandatory) the slides alone are not comprehensive other sources manuals: web: 2
3 It is about (knowledge of theory from course NDBI025 is supposed) Practical database development against given database server What take into account During creation of the DB schema When SQL query are written Optimization Indexes Execution plans In multi-user environment Locking Transaction processing For data security 3
4 Other topics are subject to follow-up courses Database languages I, II Datalog Oracle and MS SQL Server administration Transactions Stochastic methods in databases Searching the web and multimedia databases Retrieval of multimedia content on the web XML technology NoSQL databases 4
5 Relational Model Currently main platform for OLTP/OLAP Query optimization Indexing and correct query formulation can affect the execution time in many orders Multi-user environment Not correctly implemented application can cause incorrect data processing and strange results 5
6 Procedural extension Triggers - extended integrity constraint checking Procedures and functions application logic Object-oriented extensions User-defined types Nested tables Full-text extensions XML data processing 6
7 RDBMS Oracle 11g Object-relational database Support for server-side code execution in languages: PL/SQL Java C/C++ (any.dll/.so library) XML support, multi-media support, RDBMS MS SQL 2008 R2 Object-relational database Support for server-side code execution in languages: T-SQL C# XML support, text-search support, 7
8 SQL standards and implementations SELECT statement Embedded functions 8
9 Structured query language Standard language for access to (relational) databases Originally ambitions to provide natural language (that s why, e.g., SELECT is so complex a single phrase) Different subsets of statements Data definition language (DDL) CREATE/ALTER creation and altering of relational (table) schemas Definition of integrity constraints Data manipulation language (DML) Querying Data insertion, Deletion, Updating Transaction management Administration 9
10 Standards ANSI/ISO SQL 86, 89, 92, 1999, 2003 (backwards compatible) Commercial systems implement SQL at different standard level (most often SQL 99, 2003) Unfortunately, not strict implementation Lot of extra nonstandard features supported Some standard ones not supported Specific extensions for procedural, transactional and other functionality TRANSACT-SQL (Microsoft SQL Server) PL/SQL (Oracle) 10
11 SQL 86 first shot, intersection of IBM SQL implementations SQL 89 small revision triggered by industry, many details left for 3 rd parties SQL 92 stronger language, specification 6x longer than for SQL 86/89 schema modification, tables with metadata, inner joins, cascade deletes/updates based on foreign keys, set operations, transactions, cursors, exceptions four subversions Entry, Transitional, Intermediate, Full SQL 1999 many new features, e.g., object-relational extensions types STRING, BOOLEAN, REF, ARRAY, types for full-text, images, spatial data triggers, roles, programming language, regular expressions, recursive queries, etc. SQL 2003 further extensions, e.g., XML management, autonumbers, std. sequences, but also type BIT removed 11
12 SQL-86 SQL-92 ANSI/SQL2;ISO/IEC 9075:1992 Entry, Intermediate, Full SQL-99 ANSI/ISO/IEC 9075:1999 SQL-2003 ISO/IEC 9075:
13 Individual database servers not strictly follow standards Usually SQL-92 Entry Lot of non-portable extensions Strong vendor-lock Not all features implemented according to ANSI Newer versions have better compatibility Usually exist both native and ANSI versions side-by-side Common SQL-92 compatible RDBMS
14 The more features above SQL- 92 Entry are used in the application The less is probability that the application will be able to run on different RDBMS from different vendor Lot of high-level fetaures are available only in proprietary form and can not be easily ported Necessity to choose the platform before the application development Change of the platform during development is complicated and expensive Common SQL-92 compatible RDBMS
15 What to do in case that RDBMS doesn t understand my query? Is (not) the statement correct? Does the RDBMS (not) understand/support given feature? Validators of SQL At the end SQL statement has to be rewritten 15
16 SELECT [DISTINCT] expr_c1 [[AS] c_alias1] [, ] FROM source1 [[AS] t_alias1] [, ] [WHERE row_cond] [GROUP BY expr_g1 [, ] [HAVING group_cond]] [ORDER BY expr_o1 [, ]] 16
17 SELECT [DISTINCT] expr_c1 [[AS] c_alias1] [, ] FROM source1 [[AS] t_alias1] [, ] [WHERE row_cond] [GROUP BY expr_g1 [, ] [HAVING group_cond]] [ORDER BY expr_o1 [, ]] First, all data sources (tables, views, subqueries) are combined together If sources are delimited by commas, a cartesian product is computed ANSI SQL-92 introduced JOIN ON, NATURAL JOIN, OUTER JOIN, 17
18 SELECT [DISTINCT] expr_c1 [[AS] c_alias1] [, ] FROM source1 [[AS] t_alias1] [, ] [WHERE row_cond] [GROUP BY expr_g1 [, ] [HAVING group_cond]] [ORDER BY expr_o1 [, ]] Second, rows that don t follow the condition are eliminated 18
19 SELECT [DISTINCT] expr_c1 [[AS] c_alias1] [, ] FROM source1 [[AS] t_alias1] [, ] [WHERE row_cond] [GROUP BY expr_g1 [, ] [HAVING group_cond]] [ORDER BY expr_o1 [, ]] Remaining rows are grouped according to equality of grouping expressions (SORT/HASH) Every resulting row group contains atomic columns with values of grouping expressions and set columns with sets of values from all rows that form the group 19
20 SELECT [DISTINCT] expr_c1 [[AS] c_alias1] [, ] FROM source1 [[AS] t_alias1] [, ] [WHERE row_cond] [GROUP BY expr_g1 [, ] [HAVING group_cond]] [ORDER BY expr_o1 [, ]] Groups that don t correspond to the group conditions are eliminated 20
21 SELECT [DISTINCT] expr_c1 [[AS] c_alias1] [, ] FROM source1 [[AS] t_alias1] [, ] [WHERE row_cond] [GROUP BY expr_g1 [, ] [HAVING group_cond]] [ORDER BY expr_o1 [, ]] Rows/groups are ordered according to required expression values 21
22 SELECT [DISTINCT] expr_c1 [[AS] c_alias1] [, ] FROM source1 [[AS] t_alias1] [, ] [WHERE row_cond] [GROUP BY expr_g1 [, ] [HAVING group_cond]] [ORDER BY expr_o1 [, ]] Remaining (ordered) rows/groups are produced on the output In case of DISTINCT select, all duplicities are removed (before ORDER BY) Require additional SORT/HASH operation 22
23 GROUP BY has to sort/hash all rows to put rows from one group together Useful to group as less rows as possible If rows can be filtered out by WHERE clause before grouping, the result will be more effective than if unwanted groups are eliminated later 23
24 SELECT Street, COUNT(*) FROM Citizen WHERE City='Prague' GROUP BY City, Street; Only one million of rows is ordered/hashed SELECT Street, COUNT(*) FROM Citizen GROUP BY City, Street HAVING City='Prague'; 10 millions of rows are ordered / hashed, most of groups are dropped in the next step 24
25 DISTINCT clause sorts (hashes) resulting rows (even before ORDER BY operation), to find and eliminate duplicit records If it is possible, it is good to write query without DISTINCT clause ORDER BY clause should be used only when necessary It is not good idea to use it in view definitions, because the view is often used as a source for further querying 25
26 CREATE TABLE tab_name ( col_name [(maxsize[,prec])] [col_constr],, row_constraint, ); CREATE TABLE Person ( id numeric(11,0) CONSTRAINT Person_PK PRIMARY KEY, name character(50) NOT NULL ); 26
27 SQL-92 distinguishes two server-side encodings of characters Due to UTF-8 (UTF-16) support Able to store and manipulate characters from any language Not so effective multi-byte storage for national language alphabets 1. Global character set, Can use single-byte encoding CP-1250, ISO ,, or UTF 2. National character set, For texts in national language, can use UTF 27
28 SQL-92 distinguishes further two string representations 1. Fixed length Simpler data actualization Less effective representation 2. Variable length, only used characters are stored (plus length) More effective representation More complicated data actualization due to different number of bytes needed 28
29 CHARACTER(n) text in fixed length n bytes/chars CHARACTER VARYING(n) CHAR VARYING(n) text in variable length, max. n bytes/chars NATIONAL CHARACTER(n) text in fixed length n bytes/chars in national alphabet NATIONAL CHARACTER VARYING(n) NATIONAL CHAR VARYING(n) NCHAR VARYING(n) text in variable length, max. n bytes/chars in national alphabet 29
30 Constants are enclosed in single quotas Single quotas inside string has to be doubled 30
31 NUMERIC(p[,s]) common numeric type using p numbers, (with fixed decimal point using s positions after decimal point INTEGER, INT, SMALLINT integer FLOAT(b) real with b-bit precision REAL real DOUBLE PRECISION real number with double precision 31
32 DATE date (YYYY-MM-DD), precision at least days, maybe more TIME time (HH:MM.SS.MMMM), precision at least seconds TIMESTAMP date plus time (YYYY-MM-DD HH:MM.SS.MMMM) TIMESTAMP(p) WITH TIMEZONE p denotes precision of second fragments, timezone as +HH:MM, resp. HH:MM at the end 32
33 Constants are enclosed in single quotas in shown format 33
34 Databases Not necessary support all mentioned types Sometimes support them not natively, the data type is translated to similar natively supported type 34
35 CHARACTER(n) CHARACTER VARYING(n) CHAR VARYING(n) NATIONAL CHARACTER(n) NATIONAL CHARACTER VARYING(n) NATIONAL CHAR VARYING(n) NCHAR VARYING(n) NUMERIC(p,s) INTEGER, INT, SMALLINT FLOAT(b) DOUBLE PRECISION REAL CHAR(n) VARCHAR2(n) VARCHAR2(n) NCHAR(n) NVARCHAR2(n) NVARCHAR2(n) NVARCHAR2(n) NUMBER(p,s) NUMBER(38) NUMBER NUMBER NUMBER 35
36 DATE Precision in seconds, i.e. corresponds to TIMESTAMP minimal requirements in SQL-92 Default (American) format DD-MON-YY for example 01-JAN-2015 VARCHAR2(size), //recommended VARCHAR(size) String in variable length representation The size max chars (recommended. max chars) 36
37 [CONSTRAINT cons_name] constraint_definition [INITIALLY {DEFERRED IMMEDIATE}] [[NOT] DEFERRABLE] If the constraint is not explicitly named, it obtains usually artificial name (In Oracle e.g. SYS_Cnnnnnn). Therefore it is recommended to name them explicitly Column constraints are delimited each from another by space 37
38 NULL, resp. NOT NULL The column can, resp. cannot contain undefined value NULL. UNIQUE The column has to have all not null values different. PRIMARY KEY The column forms the primary key of the table, is automatically understood as both NOT NULL and UNIQUE. 38
39 CHECK (condition) Column value has to fulfill given condition. REFERENCES table_name(column) [ON DELETE {CASCADE SET NULL}] Column value references to primary key, or candidate key (UNIQUE column) of given table Using ON DELETE clause the deletion of master row is allowed. If it is deleted, referencing row is deleted as well or its value is set to NULL 39
40 DEFAULT value Not exactly integrity constraint, cannot be named, cannot be deferred Default value, used if the INSERT didn t use value for this column explicitly By default is column defined as DEFAULT NULL 40
41 Example CREATE TABLE Person( RC NUMERIC(11,0) CONSTRAINT Person_PK PRIMARY KEY, NAME CHAR VARYING(30) CONSTRAINT Person_U_Name UNIQUE NOT NULL, CHAR VARYING(30) CONSTRAINT Person_C_ CHECK ( LIKE ); 41
42 Information about tables are in Oracle available in views USER_TABLES USER_TAB_COLUMNS USER_CONSTRAINTS Information about tables are in MS SQL available in views INFORMATION_SCHEMA.TABLES INFORMATION_SCHEMA.COLUMNS INFORMATION_SCHEMA.TABLE_CONSTRAINTS 42
43 Can be applied on more columns of the same row CHECK (event_begin <= event_end) Can define multi-column primary, candidate and foreign keys PRIMARY KEY (event_begin, event_end) FOREIGN KEY (event_begin, event_end) REFERENCES Parent (x, y) 43
44 ENABLED / DISABLED Constraint is (is not) active and the validity is checked ALTER TABLE tab_name {ENABLE DISABLE} CONSTRAINT cons_name; DEFERRED / IMMEDIATE Constraint checking is deferred at the end of transaction, by default is checked immediately after every data change DEFERRABLE / NOT DEFERRABLE Constraint can be / cannot be deferred 44
45 If possible, check all data changes at the moment they occures and can be checked Whatever the user can insert in wrong place/format/ will be inserted wrongly Integrity constraints, resp. triggers Cleaning of inconsistent data later is timeconsuming and often not fully possible It is better to check everything at the database, than hope that the input will be tested in every applications running on data 45
46 Check the uniqueness of data Every table should have the primary key Even in case the primary key is artificial, individual instances (rows) usually have some natural one or multi column identifier, which should be set as candidate key of the table (UNIQUE) Sometimes more candidate keys can be found 46
How 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 informationOracle 10g PL/SQL Training
Oracle 10g PL/SQL Training Course Number: ORCL PS01 Length: 3 Day(s) Certification Exam This course will help you prepare for the following exams: 1Z0 042 1Z0 043 Course Overview PL/SQL is Oracle's Procedural
More informationInformation Systems SQL. Nikolaj Popov
Information Systems SQL Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline SQL Table Creation Populating and Modifying
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 information4 Logical Design : RDM Schema Definition with SQL / DDL
4 Logical Design : RDM Schema Definition with SQL / DDL 4.1 SQL history and standards 4.2 SQL/DDL first steps 4.2.1 Basis Schema Definition using SQL / DDL 4.2.2 SQL Data types, domains, user defined types
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 informationSQL Server An Overview
SQL Server An Overview SQL Server Microsoft SQL Server is designed to work effectively in a number of environments: As a two-tier or multi-tier client/server database system As a desktop database system
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 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 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 informationFinancial Data Access with SQL, Excel & VBA
Computational Finance and Risk Management Financial Data Access with SQL, Excel & VBA Guy Yollin Instructor, Applied Mathematics University of Washington Guy Yollin (Copyright 2012) Data Access with SQL,
More informationCSC 443 Data Base Management Systems. Basic SQL
CSC 443 Data Base Management Systems Lecture 6 SQL As A Data Definition Language Basic SQL SQL language Considered one of the major reasons for the commercial success of relational databases SQL Structured
More informationSQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach
TRAINING & REFERENCE murach's SQL Server 2012 for developers Bryan Syverson Joel Murach Mike Murach & Associates, Inc. 4340 N. Knoll Ave. Fresno, CA 93722 www.murach.com murachbooks@murach.com Expanded
More informationD61830GC30. MySQL for Developers. Summary. Introduction. Prerequisites. At Course completion After completing this course, students will be able to:
D61830GC30 for Developers Summary Duration Vendor Audience 5 Days Oracle Database Administrators, Developers, Web Administrators Level Technology Professional Oracle 5.6 Delivery Method Instructor-led
More information2874CD1EssentialSQL.qxd 6/25/01 3:06 PM Page 1 Essential SQL Copyright 2001 SYBEX, Inc., Alameda, CA www.sybex.com
Essential SQL 2 Essential SQL This bonus chapter is provided with Mastering Delphi 6. It is a basic introduction to SQL to accompany Chapter 14, Client/Server Programming. RDBMS packages are generally
More informationUsing SQL Server Management Studio
Using SQL Server Management Studio Microsoft SQL Server Management Studio 2005 is a graphical tool for database designer or programmer. With SQL Server Management Studio 2005 you can: Create databases
More informationIntroduction to Database. Systems HANS- PETTER HALVORSEN, 2014.03.03
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Introduction to Database HANS- PETTER HALVORSEN, 2014.03.03 Systems Faculty of Technology, Postboks
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 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 informationDiscovering SQL. Wiley Publishing, Inc. A HANDS-ON GUIDE FOR BEGINNERS. Alex Kriegel WILEY
Discovering SQL A HANDS-ON GUIDE FOR BEGINNERS Alex Kriegel WILEY Wiley Publishing, Inc. INTRODUCTION xxv CHAPTER 1: DROWNING IN DATA, DYING OF THIRST FOR KNOWLEDGE 1 Data Deluge and Informational Overload
More informationDBMS / Business Intelligence, SQL Server
DBMS / Business Intelligence, SQL Server Orsys, with 30 years of experience, is providing high quality, independant State of the Art seminars and hands-on courses corresponding to the needs of IT professionals.
More informationDatabase Management System Choices. Introduction To Database Systems CSE 373 Spring 2013
Database Management System Choices Introduction To Database Systems CSE 373 Spring 2013 Outline Introduction PostgreSQL MySQL Microsoft SQL Server Choosing A DBMS NoSQL Introduction There a lot of options
More informationServices. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today.
& & 1 & 2 Lecture #7 2008 3 Terminology Structure & & Database server software referred to as Database Management Systems (DBMS) Database schemas describe database structure Data ordered in tables, rows
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 informationAdvance DBMS. Structured Query Language (SQL)
Structured Query Language (SQL) Introduction Commercial database systems use more user friendly language to specify the queries. SQL is the most influential commercially marketed product language. Other
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 informationCS2Bh: Current Technologies. Introduction to XML and Relational Databases. Introduction to Databases. Why databases? Why not use XML?
CS2Bh: Current Technologies Introduction to XML and Relational Databases Spring 2005 Introduction to Databases CS2 Spring 2005 (LN5) 1 Why databases? Why not use XML? What is missing from XML: Consistency
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 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 information1. INTRODUCTION TO RDBMS
Oracle For Beginners Page: 1 1. INTRODUCTION TO RDBMS What is DBMS? Data Models Relational database management system (RDBMS) Relational Algebra Structured query language (SQL) What Is DBMS? Data is one
More informationPorting from Oracle to PostgreSQL
by Paulo Merson February/2002 Porting from Oracle to If you are starting to use or you will migrate from Oracle database server, I hope this document helps. If you have Java applications and use JDBC,
More informationINTRODUCTION TO DATABASE SYSTEMS
Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics INTRODUCTION TO DATABASE SYSTEMS HANS-PETTER HALVORSEN, 9. DESEMBER 2009 Faculty of Technology,
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 information5.1 Database Schema. 5.1.1 Schema Generation in SQL
5.1 Database Schema The database schema is the complete model of the structure of the application domain (here: relational schema): relations names of attributes domains of attributes keys additional constraints
More informationChapter 6: Physical Database Design and Performance. Database Development Process. Physical Design Process. Physical Database Design
Chapter 6: Physical Database Design and Performance Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Robert C. Nickerson ISYS 464 Spring 2003 Topic 23 Database
More informationOracle Database 10g: Introduction to SQL
Oracle University Contact Us: 1.800.529.0165 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database technology.
More informationModule 1: Getting Started with Databases and Transact-SQL in SQL Server 2008
Course 2778A: Writing Queries Using Microsoft SQL Server 2008 Transact-SQL About this Course This 3-day instructor led course provides students with the technical skills required to write basic Transact-
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 11g SQL
AO3 - Version: 2 19 June 2016 Oracle Database 11g SQL Oracle Database 11g SQL AO3 - Version: 2 3 days Course Description: This course provides the essential SQL skills that allow developers to write queries
More informationWriting Queries Using Microsoft SQL Server 2008 Transact-SQL
Course 2778A: Writing Queries Using Microsoft SQL Server 2008 Transact-SQL Length: 3 Days Language(s): English Audience(s): IT Professionals Level: 200 Technology: Microsoft SQL Server 2008 Type: Course
More informationDatabase Migration from MySQL to RDM Server
MIGRATION GUIDE Database Migration from MySQL to RDM Server A Birdstep Technology, Inc. Raima Embedded Database Division Migration Guide Published: May, 2009 Author: Daigoro F. Toyama Senior Software Engineer
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 View a newer version of this course This Oracle Database: Introduction to SQL training
More informationSuccess Keys For Migrating From Sybase ASE to DB2 UDB
White Paper Success Keys For Migrating From Sybase ASE to DB2 UDB Part 1: Data Migration The purpose of this paper is to describe the key success factors that help migrate the Sybase Database schema, underlying
More informationThe release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history.
Cloudera ODBC Driver for Impala 2.5.30 The release notes provide details of enhancements and features in Cloudera ODBC Driver for Impala 2.5.30, as well as the version history. The following are highlights
More informationFundamentals of Database Design
Fundamentals of Database Design Zornitsa Zaharieva CERN Data Management Section - Controls Group Accelerators and Beams Department /AB-CO-DM/ 23-FEB-2005 Contents : Introduction to Databases : Main Database
More informationMOC 20461C: Querying Microsoft SQL Server. Course Overview
MOC 20461C: Querying Microsoft SQL Server Course Overview This course provides students with the knowledge and skills to query Microsoft SQL Server. Students will learn about T-SQL querying, SQL Server
More informationA Brief Introduction to MySQL
A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term
More informationCOMP 5138 Relational Database Management Systems. Week 5 : Basic SQL. Today s Agenda. Overview. Basic SQL Queries. Joins Queries
COMP 5138 Relational Database Management Systems Week 5 : Basic COMP5138 "Relational Database Managment Systems" J. Davis 2006 5-1 Today s Agenda Overview Basic Queries Joins Queries Aggregate Functions
More information5. CHANGING STRUCTURE AND DATA
Oracle For Beginners Page : 1 5. CHANGING STRUCTURE AND DATA Altering the structure of a table Dropping a table Manipulating data Transaction Locking Read Consistency Summary Exercises Altering the structure
More informationOracle Database: Introduction to SQL
Oracle University Contact Us: +381 11 2016811 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn Understanding the basic concepts of relational databases ensure refined code by developers.
More informationRetrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.
Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement
More informationPhysical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database.
Physical Design Physical Database Design (Defined): Process of producing a description of the implementation of the database on secondary storage; it describes the base relations, file organizations, and
More informationIn This Lecture. SQL Data Definition SQL SQL. Notes. Non-Procedural Programming. Database Systems Lecture 5 Natasha Alechina
This Lecture Database Systems Lecture 5 Natasha Alechina The language, the relational model, and E/R diagrams CREATE TABLE Columns Primary Keys Foreign Keys For more information Connolly and Begg chapter
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 informationWriting Queries Using Microsoft SQL Server 2008 Transact-SQL
Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc Writing Queries Using Microsoft SQL Server 2008 Transact-SQL Course 2778-08;
More informationQuerying Microsoft SQL Server
Course 20461C: Querying Microsoft SQL Server Module 1: Introduction to Microsoft SQL Server 2014 This module introduces the SQL Server platform and major tools. It discusses editions, versions, tools used
More informationStructured Query Language (SQL)
Objectives of SQL Structured Query Language (SQL) o Ideally, database language should allow user to: create the database and relation structures; perform insertion, modification, deletion of data from
More informationIntroduction to SQL for Data Scientists
Introduction to SQL for Data Scientists Ben O. Smith College of Business Administration University of Nebraska at Omaha Learning Objectives By the end of this document you will learn: 1. How to perform
More informationGuide to SQL Programming: SQL:1999 and Oracle Rdb V7.1
Guide to SQL Programming: SQL:1999 and Oracle Rdb V7.1 A feature of Oracle Rdb By Ian Smith Oracle Rdb Relational Technology Group Oracle Corporation 1 Oracle Rdb Journal SQL:1999 and Oracle Rdb V7.1 The
More informationComparison of Open Source RDBMS
Comparison of Open Source RDBMS DRAFT WORK IN PROGRESS FEEDBACK REQUIRED Please send feedback and comments to s.hetze@linux-ag.de Selection of the Candidates As a first approach to find out which database
More informationManaging Objects with Data Dictionary Views. Copyright 2006, Oracle. All rights reserved.
Managing Objects with Data Dictionary Views Objectives After completing this lesson, you should be able to do the following: Use the data dictionary views to research data on your objects Query various
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 informationWhat is a database? COSC 304 Introduction to Database Systems. Database Introduction. Example Problem. Databases in the Real-World
COSC 304 Introduction to Systems Introduction Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca What is a database? A database is a collection of logically related data for
More informationDemystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components
Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals 1 Properties of a Database 1 The Database Management System (DBMS) 2 Layers of Data Abstraction 3 Physical Data Independence 5 Logical
More informationCreating Database Tables in Microsoft SQL Server
Creating Database Tables in Microsoft SQL Server Microsoft SQL Server is a relational database server that stores and retrieves data for multi-user network-based applications. SQL Server databases are
More informationThe Relational Model. Why Study the Relational Model?
The Relational Model Chapter 3 Instructor: Vladimir Zadorozhny vladimir@sis.pitt.edu Information Science Program School of Information Sciences, University of Pittsburgh 1 Why Study the Relational Model?
More informationOnce the schema has been designed, it can be implemented in the RDBMS.
2. Creating a database Designing the database schema... 1 Representing Classes, Attributes and Objects... 2 Data types... 5 Additional constraints... 6 Choosing the right fields... 7 Implementing a table
More informationCourse ID#: 1401-801-14-W 35 Hrs. Course Content
Course Content Course Description: This 5-day instructor led course provides students with the technical skills required to write basic Transact- SQL queries for Microsoft SQL Server 2014. This course
More informationChapter 9 Joining Data from Multiple Tables. Oracle 10g: SQL
Chapter 9 Joining Data from Multiple Tables Oracle 10g: SQL Objectives Identify a Cartesian join Create an equality join using the WHERE clause Create an equality join using the JOIN keyword Create a non-equality
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 informationwww.gr8ambitionz.com
Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1
More informationDatabase Design and Programming
Database Design and Programming Peter Schneider-Kamp DM 505, Spring 2012, 3 rd Quarter 1 Course Organisation Literature Database Systems: The Complete Book Evaluation Project and 1-day take-home exam,
More informationSchema Evolution in SQL-99 and Commercial (Object-)Relational DBMS
Schema Evolution in SQL-99 and Commercial (Object-)Relational DBMS Can Türker Swiss Federal Institute of Technology (ETH) Zurich Institute of Information Systems, ETH Zentrum CH 8092 Zurich, Switzerland
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 informationRelational Databases
Relational Databases Jan Chomicki University at Buffalo Jan Chomicki () Relational databases 1 / 18 Relational data model Domain domain: predefined set of atomic values: integers, strings,... every attribute
More information3. Relational Model and Relational Algebra
ECS-165A WQ 11 36 3. Relational Model and Relational Algebra Contents Fundamental Concepts of the Relational Model Integrity Constraints Translation ER schema Relational Database Schema Relational Algebra
More informationData Tool Platform SQL Development Tools
Data Tool Platform SQL Development Tools ekapner Contents Setting SQL Development Preferences...5 Execution Plan View Options Preferences...5 General Preferences...5 Label Decorations Preferences...6
More informationConventional Files versus the Database. Files versus Database. Pros and Cons of Conventional Files. Pros and Cons of Databases. Fields (continued)
Conventional Files versus the Database Files versus Database File a collection of similar records. Files are unrelated to each other except in the code of an application program. Data storage is built
More informationProgramming Database lectures for mathema
Programming Database lectures for mathematics students April 25, 2015 Functions Functions are defined in Postgres with CREATE FUNCTION name(parameter type,...) RETURNS result-type AS $$ function-body $$
More informationCourse -Oracle 10g SQL (Exam Code IZ0-047) Session number Module Topics 1 Retrieving Data Using the SQL SELECT Statement
Course -Oracle 10g SQL (Exam Code IZ0-047) Session number Module Topics 1 Retrieving Data Using the SQL SELECT Statement List the capabilities of SQL SELECT statements Execute a basic SELECT statement
More informationdatabase abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia smith@backendmedia.com
Lukas Smith database abstraction layers in PHP BackendMedia 1 Overview Introduction Motivation PDO extension PEAR::MDB2 Client API SQL syntax SQL concepts Result sets Error handling High level features
More informationInformation Technology NVEQ Level 2 Class X IT207-NQ2012-Database Development (Basic) Student s Handbook
Students Handbook ... Accenture India s Corporate Citizenship Progra as well as access to their implementing partners (Dr. Reddy s Foundation supplement CBSE/ PSSCIVE s content. ren s life at Database
More informationGuide to the Superbase. ODBC Driver. By Superbase Developers plc
Guide to the Superbase ODBC Driver By Superbase Developers plc This manual was produced using Doc-To-Help, by WexTech Systems, Inc. WexTech Systems, Inc. 310 Madison Avenue, Suite 905 New York, NY 10017
More informationChoosing a Data Model for Your Database
In This Chapter This chapter describes several issues that a database administrator (DBA) must understand to effectively plan for a database. It discusses the following topics: Choosing a data model for
More information1 File Processing Systems
COMP 378 Database Systems Notes for Chapter 1 of Database System Concepts Introduction A database management system (DBMS) is a collection of data and an integrated set of programs that access that data.
More informationOracle Migration Workbench
Oracle Migration Workbench Reference Guide for SQL Server and Sybase Adaptive Server Migrations Release 9.2.0 for Microsoft Windows 98/2000/NT and Microsoft Windows XP September 2002 Part Number: B10254-01
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 information4 Simple Database Features
4 Simple Database Features Now we come to the largest use of iseries Navigator for programmers the Databases function. IBM is no longer developing DDS (Data Description Specifications) for database definition,
More informationInformation Systems 2. 1. Modelling Information Systems I: Databases
Information Systems 2 Information Systems 2 1. Modelling Information Systems I: Databases Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute for Business Economics and Information
More informationAdvanced SQL. Jim Mason. www.ebt-now.com Web solutions for iseries engineer, build, deploy, support, train 508-728-4353. jemason@ebt-now.
Advanced SQL Jim Mason jemason@ebt-now.com www.ebt-now.com Web solutions for iseries engineer, build, deploy, support, train 508-728-4353 What We ll Cover SQL and Database environments Managing Database
More information6 CHAPTER. Relational Database Management Systems and SQL Chapter Objectives In this chapter you will learn the following:
6 CHAPTER Relational Database Management Systems and SQL Chapter Objectives In this chapter you will learn the following: The history of relational database systems and SQL How the three-level architecture
More informationQuerying Microsoft SQL Server 20461C; 5 days
Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc Querying Microsoft SQL Server 20461C; 5 days Course Description This 5-day
More informationSummary on Chapter 4 Basic SQL
Summary on Chapter 4 Basic SQL SQL Features Basic SQL DDL o Includes the CREATE statements o Has a comprehensive set of SQL data types o Can specify key, referential integrity, and other constraints Basic
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 information2. Basic Relational Data Model
2. Basic Relational Data Model 2.1 Introduction Basic concepts of information models, their realisation in databases comprising data objects and object relationships, and their management by DBMS s that
More informationSQL DATA DEFINITION: KEY CONSTRAINTS. CS121: Introduction to Relational Database Systems Fall 2015 Lecture 7
SQL DATA DEFINITION: KEY CONSTRAINTS CS121: Introduction to Relational Database Systems Fall 2015 Lecture 7 Data Definition 2 Covered most of SQL data manipulation operations Continue exploration of SQL
More informationCourse 20461C: Querying Microsoft SQL Server Duration: 35 hours
Course 20461C: Querying Microsoft SQL Server Duration: 35 hours About this Course This course is the foundation for all SQL Server-related disciplines; namely, Database Administration, Database Development
More informationMOC 20461 QUERYING MICROSOFT SQL SERVER
ONE STEP AHEAD. MOC 20461 QUERYING MICROSOFT SQL SERVER Length: 5 days Level: 300 Technology: Microsoft SQL Server Delivery Method: Instructor-led (classroom) COURSE OUTLINE Module 1: Introduction to Microsoft
More informationReview your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Test: Final Exam Semester 1 Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer. Section 6 1. The following code does not violate any constraints and will
More information