jeudi 22 octobre 15 Limbajul SQL

Size: px
Start display at page:

Download "jeudi 22 octobre 15 Limbajul SQL"

Transcription

1 Limbajul SQL

2 Principiile SQL O interogatie se termina prin ; Instructiunile sunt in majuscule (conventie) Numele câmpurilor sau a tabelelor - scriere exacta Numele nu pot depasi 128 caractere 2/ 21

3 Gestiunea tabelelor CREATE TABLE Carti (lista coloane cu tipul asociat); 3/ 21

4 Gestiunea tabelelor CREATE TABLE Carti (lista coloane cu tipul asociat); INSERT INTO Carti (Titlu, Autor, ISBN, PRET, N_inventar) VALUES ( Infern, Dante, 55525, 15, 100); 3/ 21

5 Gestiunea tabelelor CREATE TABLE Carti (lista coloane cu tipul asociat); INSERT INTO Carti (Titlu, Autor, ISBN, PRET, N_inventar) VALUES ( Infern, Dante, 55525, 15, 100); DELETE FROM Carti WHERE Titlu= Amintiri din copilarie ; 3/ 21

6 Gestiunea tabelelor CREATE TABLE Carti (lista coloane cu tipul asociat); INSERT INTO Carti (Titlu, Autor, ISBN, PRET, N_inventar) VALUES ( Infern, Dante, 55525, 15, 100); DELETE FROM Carti WHERE Titlu= Amintiri din copilarie ; UPDATE Carti SET Titlu= Amintiri din tinerete WHERE Autor= Creanga 3/ 21

7 Proiectia SELECT Nume, Oras FROM Persoana; 4/ 21

8 Proiectia SELECT Nume, Oras FROM Persoana; Nume Nestor Irma Henri Josette Jacques Oras Paris Lille Paris Lyon Bordeaux 4/ 21

9 SELECT * FROM Persoana; Proiectia (2) SELECT Oras AS City FROM Persoana; 5/ 21

10 Proiectia (2) SELECT * FROM Persoana; Toata tabla SELECT Oras AS City FROM Persoana; 5/ 21

11 Proiectia (2) SELECT * FROM Persoana; Toata tabla SELECT Oras AS City FROM Persoana; City Paris Lille Paris Lyon Bordeaux 5/ 21

12 Proiectia - valori diferite SELECT DISTINCT Ville FROM Persoana; 6/ 21

13 Proiectia - valori diferite SELECT DISTINCT Ville FROM Persoana; Ville Paris Lille Lyon Bordeaux 6/ 21

14 Operatii + Addition - Soustraction * Multiplication / Division % Modulo SELECT Pret, N_inventar, (Pret/4.31) AS Pret_Euros FROM Stoc; 7/ 21

15 Operatii statistice COUNT MAX MIN AVG SUM SELECT AVG(Pret) AS Pret_Mediu FROM Carti; SELECT COUNT(*) AS Numar_Total FROM Stoc; 8/ 21

16 Selectia - operatori de comparare = <> < > <= >= SELECT * FROM Vânzari WHERE Pret > 50000; 9/ 21

17 Alti operatori de comparare BETWEEN <val1> AND <val2> In <liste_valeurs> IS NULL LIKE Modulo SELECT * FROM Tipografie WHERE Calitate IN ( mediu, superior ); 10/ 21

18 Conectori AND OR NOT SELECT * FROM Carti WHERE Titlu = Infern AND Pret <10;

19 Agregate (groupari) SELECT Marca FROM Masina GROUP BY Marca;

20 Agregate (groupari) SELECT Marca FROM Masina GROUP BY Marca; Marca Citroen Opel Peugeot Renault

21 Alt exemplu SELECT Marca, COUNT(*) AS Cont FROM Masina GROUP BY Marca;

22 Alt exemplu SELECT Marca, COUNT(*) AS Cont FROM Masina GROUP BY Marca; Marca Cont Dacia 1 Opel 1 Peugeot 2 Dacia 2

23 Alt exercitiu SELECT Oras, AVG(Varsta) AS Varsta_Medie FROM Persoana GROUP BY Oras;

24 Restrictionarea rezultatului SELECT Marca, COUNT(*) AS Cont FROM Masina GROUP BY Marca HAVING Cont >1; 15/ 21

25 Restrictionarea rezultatului SELECT Marca, COUNT(*) AS Cont FROM Masina GROUP BY Marca HAVING Cont >1; Marca Cont Peugeot 2 Renault 2 15/ 21

26 Interogatii pe mai multe table SELECT Carti.Pret, Stoc.Cantitate WHERE Stoc.N_Inventar <= 400 FROM Librarie; 16/ 21

27 Produs cartezian SELECT * FROM Carti, Stoc; nbr_coloane_rezultat = nbr_col_1 + nbr_col_2 nbr_linii_rezultat = nbr_lin_1 * nbr_lin_2

28 Join (simplu) SELECT Masina.Marca, Masina.Culoare, Vânzari.Pret FROM Masina, Vânzari WHERE Masina.Numar = Vânzari.Numar;

29 Join (simplu) SELECT Masina.Marca, Masina.Culoare, Vânzari.Pret FROM Masina, Vânzari WHERE Masina.Numar = Vânzari.Numar; Optimizare posibila

30 Join (simplu) SELECT Masina.Marca, Masina.Culoare, Vânzari.Pret FROM Masina, Vânzari WHERE Masina.Numar = Vânzari.Numar; Optimizare posibila SELECT Masina.Marca, Masina.Culoare, Vânzari.Pret FROM Vânzari JOIN Masina.Numar = Vânzari.Numar;

31 Join extern SELECT Masina.Numar, Vânzari.Numar, Masina.Marca, Masina.Culoare, Vânzari.Pret FROM Masina LEFT OUTER JOIN Vânzari ON Masina.Numar = Vânzari.Numar;

32 Trierea rezultatului SELECT Pret, DateVânzare FROM Vânzare ORDER BY Pret DESC;

33 Trierea rezultatului SELECT Pret, DateVânzare FROM Vânzare ORDER BY Pret DESC; Pret DateVânzare

34 21/ 21

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification

Chapter 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 information

requête SQL:SELECT NomP, matiere FROM `produit` WHERE poids between 3 and 4 Enregistrements: 4

requête SQL:SELECT NomP, matiere FROM `produit` WHERE poids between 3 and 4 Enregistrements: 4 requête SQL: select * from usine order by ville Enregistrements: 0 NomU Ville ALPHA AL ALBI ALPHA B BORDEAUX ALPHA B BORDEAUX ALPHA C CASTRES ALPHA L 0 ALPHA M MONTPELLIER ALPHA N NANTES ALPHA P ALPHA

More information

SQL - QUICK GUIDE. Allows users to access data in relational database management systems.

SQL - 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 information

Introducción a las bases de datos SQL Libro de referencia

Introducción a las bases de datos SQL Libro de referencia Introducción a las bases de datos SQL 1 Libro de referencia Java How To Program 3ed Edition Deitel&Deitel Prentice Hall, 1999 2 Introduction Relational-Database Model Relational Database Overview: The

More information

Relational Database: Additional Operations on Relations; SQL

Relational 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 information

Introduction to SQL and SQL in R. LISA Short Courses Xinran Hu

Introduction to SQL and SQL in R. LISA Short Courses Xinran Hu Introduction to SQL and SQL in R LISA Short Courses Xinran Hu 1 Laboratory for Interdisciplinary Statistical Analysis LISA helps VT researchers benefit from the use of Statistics Collaboration: Visit our

More information

Introduction to Microsoft Jet SQL

Introduction 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 information

Boats bid bname color 101 Interlake blue 102 Interlake red 103 Clipper green 104 Marine red. Figure 1: Instances of Sailors, Boats and Reserves

Boats bid bname color 101 Interlake blue 102 Interlake red 103 Clipper green 104 Marine red. Figure 1: Instances of Sailors, Boats and Reserves Tutorial 5: SQL By Chaofa Gao Tables used in this note: Sailors(sid: integer, sname: string, rating: integer, age: real); Boats(bid: integer, bname: string, color: string); Reserves(sid: integer, bid:

More information

SQL Basics. Introduction to Standard Query Language

SQL Basics. Introduction to Standard Query Language SQL Basics Introduction to Standard Query Language SQL What Is It? Structured Query Language Common Language For Variety of Databases ANSI Standard BUT. Two Types of SQL DML Data Manipulation Language

More information

1 Structured Query Language: Again. 2 Joining Tables

1 Structured Query Language: Again. 2 Joining Tables 1 Structured Query Language: Again So far we ve only seen the basic features of SQL. More often than not, you can get away with just using the basic SELECT, INSERT, UPDATE, or DELETE statements. Sometimes

More information

3.GETTING STARTED WITH ORACLE8i

3.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 information

SQL SELECT Query: Intermediate

SQL SELECT Query: Intermediate SQL SELECT Query: Intermediate IT 4153 Advanced Database J.G. Zheng Spring 2012 Overview SQL Select Expression Alias revisit Aggregate functions - complete Table join - complete Sub-query in where Limiting

More information

Part A: Data Definition Language (DDL) Schema and Catalog CREAT TABLE. Referential Triggered Actions. CSC 742 Database Management Systems

Part 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 information

T-SQL STANDARD ELEMENTS

T-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 information

COMP 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 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 information

Database Query 1: SQL Basics

Database 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 information

More on SQL. Juliana Freire. Some slides adapted from J. Ullman, L. Delcambre, R. Ramakrishnan, G. Lindstrom and Silberschatz, Korth and Sudarshan

More on SQL. Juliana Freire. Some slides adapted from J. Ullman, L. Delcambre, R. Ramakrishnan, G. Lindstrom and Silberschatz, Korth and Sudarshan More on SQL Some slides adapted from J. Ullman, L. Delcambre, R. Ramakrishnan, G. Lindstrom and Silberschatz, Korth and Sudarshan SELECT A1, A2,, Am FROM R1, R2,, Rn WHERE C1, C2,, Ck Interpreting a Query

More information

Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25)

Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME VARCHAR2(25) Which three statements inserts a row into the table? A. INSERT INTO employees

More information

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Duration 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 information

Example Instances. SQL: Queries, Programming, Triggers. Conceptual Evaluation Strategy. Basic SQL Query. A Note on Range Variables

Example Instances. SQL: Queries, Programming, Triggers. Conceptual Evaluation Strategy. Basic SQL Query. A Note on Range Variables SQL: Queries, Programming, Triggers Chapter 5 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Example Instances We will use these instances of the Sailors and Reserves relations in our

More information

Query-by-Example (QBE)

Query-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 information

SQL: Queries, Programming, Triggers

SQL: Queries, Programming, Triggers SQL: Queries, Programming, Triggers Chapter 5 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 R1 Example Instances We will use these instances of the Sailors and Reserves relations in

More information

07:42 08:07 08:31 (1) 08:55 (2) 10:49 06:13 06:40 07:06 07:33 09:27 09:42 10:07 12:49. MoTuWeTh FrSa. FrSaSu. Euro duplex 06:11 08:04-08:57

07:42 08:07 08:31 (1) 08:55 (2) 10:49 06:13 06:40 07:06 07:33 09:27 09:42 10:07 12:49. MoTuWeTh FrSa. FrSaSu. Euro duplex 06:11 08:04-08:57 PARIS > Paris Nurieux BourgenBresse ParisGare de Lyon (1) ndays only (2) Arrival at 8:57 on ndays (3) No stop on ndays 9760 06:13 06:40 07:06 07:33 9764 07:42 08:07 08:31 (1) 08:55 (2) 10:49 9768 09:42

More information

Databases 2011 The Relational Model and SQL

Databases 2011 The Relational Model and SQL Databases 2011 Christian S. Jensen Computer Science, Aarhus University What is a Database? Main Entry: da ta base Pronunciation: \ˈdā-tə-ˌbās, ˈda- also ˈdä-\ Function: noun Date: circa 1962 : a usually

More information

Week 4 & 5: SQL. SQL as a Query Language

Week 4 & 5: SQL. SQL as a Query Language Week 4 & 5: SQL The SQL Query Language Select Statements Joins, Aggregate and Nested Queries Insertions, Deletions and Updates Assertions, Views, Triggers and Access Control SQL 1 SQL as a Query Language

More information

SQL Basics for RPG Developers

SQL Basics for RPG Developers SQL Basics for RPG Developers Chris Adair Manager of Application Development National Envelope Vice President/Treasurer Metro Midrange Systems Assoc. SQL HISTORY Structured English Query Language (SEQUEL)

More information

SQL: Queries, Programming, Triggers

SQL: Queries, Programming, Triggers SQL: Queries, Programming, Triggers CSC343 Introduction to Databases - A. Vaisman 1 R1 Example Instances We will use these instances of the Sailors and Reserves relations in our examples. If the key for

More information

When a variable is assigned as a Process Initialization variable its value is provided at the beginning of the process.

When a variable is assigned as a Process Initialization variable its value is provided at the beginning of the process. In this lab you will learn how to create and use variables. Variables are containers for data. Data can be passed into a job when it is first created (Initialization data), retrieved from an external source

More information

2874CD1EssentialSQL.qxd 6/25/01 3:06 PM Page 1 Essential SQL Copyright 2001 SYBEX, Inc., Alameda, CA www.sybex.com

2874CD1EssentialSQL.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 information

DATABASE DESIGN AND IMPLEMENTATION II SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO. Sault College

DATABASE 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 information

CIS 631 Database Management Systems Sample Final Exam

CIS 631 Database Management Systems Sample Final Exam CIS 631 Database Management Systems Sample Final Exam 1. (25 points) Match the items from the left column with those in the right and place the letters in the empty slots. k 1. Single-level index files

More information

Performing Queries Using PROC SQL (1)

Performing 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 information

Beginning C# 5.0. Databases. Vidya Vrat Agarwal. Second Edition

Beginning 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 information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle 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 information

Unit 10: Microsoft Access Queries

Unit 10: Microsoft Access Queries Microsoft Access Queries Unit 10: Microsoft Access Queries Introduction Queries are a fundamental means of accessing and displaying data from tables. Queries used to view, update, and analyze data in different

More information

Inquiry Formulas. student guide

Inquiry Formulas. student guide Inquiry Formulas student guide NOTICE This documentation and the Axium software programs may only be used in accordance with the accompanying Ajera License Agreement. You may not use, copy, modify, or

More information

Database Administration with MySQL

Database 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 information

Using Multiple Operations. Implementing Table Operations Using Structured Query Language (SQL)

Using Multiple Operations. Implementing Table Operations Using Structured Query Language (SQL) Copyright 2000-2001, University of Washington Using Multiple Operations Implementing Table Operations Using Structured Query Language (SQL) The implementation of table operations in relational database

More information

Oracle SQL. Course Summary. Duration. Objectives

Oracle 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 information

UNIT 6. Structured Query Language (SQL) Text: Chapter 5

UNIT 6. Structured Query Language (SQL) Text: Chapter 5 UNIT 6 Structured Query Language (SQL) Text: Chapter 5 Learning Goals Given a database (a set of tables ) you will be able to express a query in SQL, involving set operators, subqueries and aggregations

More information

Chapter 1 Overview of the SQL Procedure

Chapter 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 information

Programming with SQL

Programming 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 information

P_Id LastName FirstName Address City 1 Kumari Mounitha VPura Bangalore 2 Kumar Pranav Yelhanka Bangalore 3 Gubbi Sharan Hebbal Tumkur

P_Id LastName FirstName Address City 1 Kumari Mounitha VPura Bangalore 2 Kumar Pranav Yelhanka Bangalore 3 Gubbi Sharan Hebbal Tumkur SQL is a standard language for accessing and manipulating databases. What is SQL? SQL stands for Structured Query Language SQL lets you access and manipulate databases SQL is an ANSI (American National

More information

IINF 202 Introduction to Data and Databases (Spring 2012)

IINF 202 Introduction to Data and Databases (Spring 2012) 1 IINF 202 Introduction to Data and Databases (Spring 2012) Class Meets Times: Tuesday 7:15 PM 8:35 PM Thursday 7:15 PM 8:35 PM Location: SS 134 Instructor: Dima Kassab Email: dk155686@albany.edu Office

More information

Chapter 5. SQL: Queries, Constraints, Triggers

Chapter 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 information

Introduction to SQL for Data Scientists

Introduction 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 information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle 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 information

Financial Data Access with SQL, Excel & VBA

Financial 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 information

IT2304: Database Systems 1 (DBS 1)

IT2304: 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 information

RDBMS Using Oracle. Lecture Week 7 Introduction to Oracle 9i SQL Last Lecture. kamran.munir@gmail.com. Joining Tables

RDBMS Using Oracle. Lecture Week 7 Introduction to Oracle 9i SQL Last Lecture. kamran.munir@gmail.com. Joining Tables RDBMS Using Oracle Lecture Week 7 Introduction to Oracle 9i SQL Last Lecture Joining Tables Multiple Table Queries Simple Joins Complex Joins Cartesian Joins Outer Joins Multi table Joins Other Multiple

More information

4. SQL. Contents. Example Database. CUSTOMERS(FName, LName, CAddress, Account) PRODUCTS(Prodname, Category) SUPPLIERS(SName, SAddress, Chain)

4. SQL. Contents. Example Database. CUSTOMERS(FName, LName, CAddress, Account) PRODUCTS(Prodname, Category) SUPPLIERS(SName, SAddress, Chain) ECS-165A WQ 11 66 4. SQL Contents Basic Queries in SQL (select statement) Set Operations on Relations Nested Queries Null Values Aggregate Functions and Grouping Data Definition Language Constructs Insert,

More information

Business Intelligence Extensions for SPARQL

Business Intelligence Extensions for SPARQL Business Intelligence Extensions for SPARQL Orri Erling (Program Manager, OpenLink Virtuoso) and Ivan Mikhailov (Lead Developer, OpenLink Virtuoso). OpenLink Software, 10 Burlington Mall Road Suite 265

More information

GS1201 7mm ISO 3808 Class F, suppressed core 12-20kohm Fits JAGUAR, corresponds with OES quality

GS1201 7mm ISO 3808 Class F, suppressed core 12-20kohm Fits JAGUAR, corresponds with OES quality GS1000 8mm ISO 3808 Class F, suppressed core 12-20kohms Fits VIPER. GS1201 7mm ISO 3808 Class F, JAGUAR, GS1202 7mm ISO 3808 Class F, JAGUAR, GS1203 7mm ISO 3808 Class F, JAGUAR, GS1208-C 7mm ISO 3808

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle 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 information

Structured Query Language (SQL)

Structured 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 information

IT2305 Database Systems I (Compulsory)

IT2305 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 information

DBMS / Business Intelligence, SQL Server

DBMS / 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 information

9.1 SAS. SQL Query Window. User s Guide

9.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 information

SQL Examples from Chapters 6&7:

SQL Examples from Chapters 6&7: MIS 311 BUSINESS DABABASE MANAGEMENT Prepared by the Course Instructor: Dr. Mustafa Eid Note please, because there is an incompatibility between the MS WORD editor and SQL View editor, do not run the SQL

More information

Data Structure: Relational Model. Programming Interface: JDBC/ODBC. SQL Queries: The Basic From

Data Structure: Relational Model. Programming Interface: JDBC/ODBC. SQL Queries: The Basic From Data Structure: Relational Moel Relational atabases: Schema + Data Schema (also calle scheme): collection of tables (also calle relations) each table has a set of attributes no repeating relation names,

More information

SQL Nested & Complex Queries. CS 377: Database Systems

SQL Nested & Complex Queries. CS 377: Database Systems SQL Nested & Complex Queries CS 377: Database Systems Recap: Basic SQL Retrieval Query A SQL query can consist of several clauses, but only SELECT and FROM are mandatory SELECT FROM

More information

David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design and Implementation

David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design and Implementation David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design and Implementation Chapter Two: Introduction to Structured Query Language 2-1 Chapter Objectives To understand the use of extracted

More information

Access Queries (Office 2003)

Access Queries (Office 2003) Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy

More information

Using Databases With LabVIEW

Using Databases With LabVIEW Using Databases With LabVIEW LabVIEW User Group Meeting December 2007 Charles Spitaleri ALE System Integration PO Box 832 Melville, NY 11747-0832 +1 (631) 421-1198 ALE System Integration http://www.aleconsultants.com

More information

Chapter 7 Event Log. Click the [Alarm (Event Log)] icon, and [Event Log] dialog appears as below:

Chapter 7 Event Log. Click the [Alarm (Event Log)] icon, and [Event Log] dialog appears as below: Chapter 7 Event Log Event log is used to identify the content of an event and the conditions triggering this event. In addition, the triggered event (sometimes it is called alarm) and the processing procedure

More information

Optimizing Your Data Warehouse Design for Superior Performance

Optimizing Your Data Warehouse Design for Superior Performance Optimizing Your Data Warehouse Design for Superior Performance Lester Knutsen, President and Principal Database Consultant Advanced DataTools Corporation Session 2100A The Problem The database is too complex

More information

Instant SQL Programming

Instant 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 information

SDMX technical standards Data validation and other major enhancements

SDMX technical standards Data validation and other major enhancements SDMX technical standards Data validation and other major enhancements Vincenzo Del Vecchio - Bank of Italy 1 Statistical Data and Metadata exchange Original scope: the exchange Statistical Institutions

More information

SQL Server 2008 Core Skills. Gary Young 2011

SQL Server 2008 Core Skills. Gary Young 2011 SQL Server 2008 Core Skills Gary Young 2011 Confucius I hear and I forget I see and I remember I do and I understand Core Skills Syllabus Theory of relational databases SQL Server tools Getting help Data

More information

SQL. Short introduction

SQL. Short introduction SQL Short introduction 1 Overview SQL, which stands for Structured Query Language, is used to communicate with a database. Through SQL one can create, manipulate, query and delete tables and contents.

More information

WEB DEVELOPMENT COURSE (PHP/ MYSQL)

WEB DEVELOPMENT COURSE (PHP/ MYSQL) WEB DEVELOPMENT COURSE (PHP/ MYSQL) COURSE COVERS: HTML 5 CSS 3 JAVASCRIPT JQUERY BOOTSTRAP 3 PHP 5.5 MYSQL SYLLABUS HTML5 Introduction to HTML Introduction to Internet HTML Basics HTML Elements HTML Attributes

More information

A basic create statement for a simple student table would look like the following.

A basic create statement for a simple student table would look like the following. Creating Tables A basic create statement for a simple student table would look like the following. create table Student (SID varchar(10), FirstName varchar(30), LastName varchar(30), EmailAddress varchar(30));

More information

Multiple Linear Regression

Multiple Linear Regression Multiple Linear Regression A regression with two or more explanatory variables is called a multiple regression. Rather than modeling the mean response as a straight line, as in simple regression, it is

More information

Ghid pentru salvarea mail-urilor folosind un client de mail

Ghid pentru salvarea mail-urilor folosind un client de mail Ghid pentru salvarea mail-urilor folosind un client de mail Tutorialul de fata se adreseaza acelora care utilizeaza posta de mail a Universitatii Tehnice folosind unul din urmatoarii clienti de mail: 1.

More information

Chapter 13: Query Optimization

Chapter 13: Query Optimization Chapter 13: Query Optimization Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 13: Query Optimization Introduction Transformation of Relational Expressions Catalog

More information

A Comparison of Database Query Languages: SQL, SPARQL, CQL, DMX

A Comparison of Database Query Languages: SQL, SPARQL, CQL, DMX ISSN: 2393-8528 Contents lists available at www.ijicse.in International Journal of Innovative Computer Science & Engineering Volume 3 Issue 2; March-April-2016; Page No. 09-13 A Comparison of Database

More information

A brief MySQL tutorial. CSE 134A: Web Service Design and Programming Fall 2001 9/28/2001

A brief MySQL tutorial. CSE 134A: Web Service Design and Programming Fall 2001 9/28/2001 A brief MySQL tutorial CSE 134A: Web Service Design and Programming Fall 2001 9/28/2001 Creating and Deleting Databases 1) Creating a database mysql> CREATE database 134a; Query OK, 1 row affected (0.00

More information

Database Performance Report Using PivotalVRP

Database Performance Report Using PivotalVRP Database Performance Report Using PivotalVRP Sample Report Date: July 2013 Created by: Shahar Harap Table of Content 1. Executive Summary... 3 2. Overall resource consumption overview... 4 2.1. Peak investigation...

More information

SQL Simple Queries. Chapter 3.1 V3.0. Copyright @ Napier University Dr Gordon Russell

SQL Simple Queries. Chapter 3.1 V3.0. Copyright @ Napier University Dr Gordon Russell SQL Simple Queries Chapter 3.1 V3.0 Copyright @ Napier University Dr Gordon Russell Introduction SQL is the Structured Query Language It is used to interact with the DBMS SQL can Create Schemas in the

More information

Introduction to database design

Introduction to database design Introduction to database design KBL chapter 5 (pages 127-187) Rasmus Pagh Some figures are borrowed from the ppt slides from the book used in the course, Database systems by Kiefer, Bernstein, Lewis Copyright

More information

History of SQL. Relational Database Languages. Tuple relational calculus ALPHA (Codd, 1970s) QUEL (based on ALPHA) Datalog (rule-based, like PROLOG)

History of SQL. Relational Database Languages. Tuple relational calculus ALPHA (Codd, 1970s) QUEL (based on ALPHA) Datalog (rule-based, like PROLOG) Relational Database Languages Tuple relational calculus ALPHA (Codd, 1970s) QUEL (based on ALPHA) Datalog (rule-based, like PROLOG) Domain relational calculus QBE (used in Access) History of SQL Standards:

More information

Check Digit Schemes and Error Detecting Codes. By Breanne Oldham Union University

Check Digit Schemes and Error Detecting Codes. By Breanne Oldham Union University Check Digit Schemes and Error Detecting Codes By Breanne Oldham Union University What are Check Digit Schemes? Check digit schemes are numbers appended to an identification number that allow the accuracy

More information

Configuring Data Masking

Configuring Data Masking Configuring Data Masking Intellicus Web-based Reporting Suite Version 4.5 Enterprise Professional Smart Developer Smart Viewer Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2009

More information

Oracle For Beginners Page : 1

Oracle For Beginners Page : 1 Oracle For Beginners Page : 1 Chapter 8 GROUPING DATA GROUP BY clause Group functions HAVING clause ROLLUP and CUBE In this chapter, we will see how to group data to get summary information. We have so

More information

EUROPEAN COMPUTER DRIVING LICENCE. Module AM5, Database, Advanced-Level

EUROPEAN COMPUTER DRIVING LICENCE. Module AM5, Database, Advanced-Level EUROPEAN COMPUTER DRIVING LICENCE Module AM5, Database, Advanced-Level Copyright 2002 The European Computer Driving Licence Foundation Ltd. All rights reserved. No part of this publication may be reproduced

More information

CO 2. emissions performance of car manufacturers in 2010

CO 2. emissions performance of car manufacturers in 2010 emissions performance of car manufacturers in 2010 Executive summary Executive summary Data collected by the European Environment Agency (EEA) on emissions from passenger cars reveal that the majority

More information

Microsoft Access 3: Understanding and Creating Queries

Microsoft Access 3: Understanding and Creating Queries Microsoft Access 3: Understanding and Creating Queries In Access Level 2, we learned how to perform basic data retrievals by using Search & Replace functions and Sort & Filter functions. For more complex

More information

Relational Algebra. Query Languages Review. Operators. Select (σ), Project (π), Union ( ), Difference (-), Join: Natural (*) and Theta ( )

Relational Algebra. Query Languages Review. Operators. Select (σ), Project (π), Union ( ), Difference (-), Join: Natural (*) and Theta ( ) Query Languages Review Relational Algebra SQL Set operators Union Intersection Difference Cartesian product Relational Algebra Operators Relational operators Selection Projection Join Division Douglas

More information

Assignment 3: SQL Queries. Questions 1. The following relations keep track of airline flight information:

Assignment 3: SQL Queries. Questions 1. The following relations keep track of airline flight information: Database Systems Instructors: Hao-Hua Chu Winston Hsu Fall Semester, 2007 Assignment 3: SQL Queries Questions 1. The following relations keep track of airline flight information: Flightsflno: integer,

More information

The Hadoop Implementation. Thomas Zimmermann Philipp Berger

The Hadoop Implementation. Thomas Zimmermann Philipp Berger Link Analysis goes MapReduce The Hadoop Implementation Thomas Zimmermann Philipp Berger Flashback 2 Overview 3 1. Pre- / Postprocessing 2. Our Jobs 3. Evaluation Overview 4 1. Pre- / Postprocessing 2.

More information

Part 4: Database Language - SQL

Part 4: Database Language - SQL Part 4: Database Language - SQL Junping Sun Database Systems 4-1 Database Languages and Implementation Data Model Data Model = Data Schema + Database Operations + Constraints Database Languages such as

More information

Resco CRM Server Guide. How to integrate Resco CRM with other back-end systems using web services

Resco CRM Server Guide. How to integrate Resco CRM with other back-end systems using web services Resco CRM Server Guide How to integrate Resco CRM with other back-end systems using web services Integrating Resco CRM with other back-end systems using web services (Data, Metadata) This document consists

More information

Timetable : Marseille -> Nancy / Nancy -> Marseille Marseille -> Nancy

Timetable : Marseille -> Nancy / Nancy -> Marseille Marseille -> Nancy Timetable : Marseille -> Nancy / Nancy -> Marseille Marseille -> Nancy MARSEILLE ST CHAR 05:36 11:44 NANCY VILLE 06:08 1 TU-WE-FR שחח 575 1 1. Marseille St Char 05:36 08:56 Paris Gare Lyon N : 6102 2.

More information

1.204 Lecture 3. SQL: Basics, Joins SQL

1.204 Lecture 3. SQL: Basics, Joins SQL 1.204 Lecture 3 SQL: Basics, Joins SQL Structured query language (SQL) used for Data definition (DDL): tables and views (virtual tables). These are the basic operations to convert a data model to a database

More information

Talking to Databases: SQL for Designers

Talking to Databases: SQL for Designers Biography Sean Hedenskog Talking to Databases: SQL for Designers Sean Hedenskog Agent Instructor Macromedia Certified Master Instructor Macromedia Certified Developer ColdFusion / Dreamweaver Reside in

More information

IENG2004 Industrial Database and Systems Design. Microsoft Access I. What is Microsoft Access? Architecture of Microsoft Access

IENG2004 Industrial Database and Systems Design. Microsoft Access I. What is Microsoft Access? Architecture of Microsoft Access IENG2004 Industrial Database and Systems Design Microsoft Access I Defining databases (Chapters 1 and 2) Alison Balter Mastering Microsoft Access 2000 Development SAMS, 1999 What is Microsoft Access? Microsoft

More information

Modello Model Serie/Anno Series/Year 147-2000 > GT - 2003 > Giulietta 04/2010 > Giulietta 04/2010 > Giulietta 04/2010 > Giulietta DX - RH ALFA ROMEO

Modello Model Serie/Anno Series/Year 147-2000 > GT - 2003 > Giulietta 04/2010 > Giulietta 04/2010 > Giulietta 04/2010 > Giulietta DX - RH ALFA ROMEO 147-2000 > 77364522 0283081 GT - 2003 > 77364521 0293081 Descrizione: Snodo sospensione - asse anteriore - inferiore Description: Ball joint - front axle - lower 50521045 Z 0405338 Descrizione: Braccio

More information

Chapter 6: Integrity Constraints

Chapter 6: Integrity Constraints Chapter 6: Integrity Constraints Domain Constraints Referential Integrity Assertions Triggers Functional Dependencies Database Systems Concepts 6.1 Silberschatz, Korth and Sudarshan c 1997 Domain Constraints

More information