millions of SQL Server users worldwide, this feature broadens enormously concepts behind the model; how relationships are handled and what are the

Size: px
Start display at page:

Download "millions of SQL Server users worldwide, this feature broadens enormously concepts behind the model; how relationships are handled and what are the"

Transcription

1

2 SQL Server 2017 introduced the extension for graph databases. As there are millions of SQL Server users worldwide, this feature broadens enormously the audience of potential users. But, what to expect exactly from a graph database? How to query it? Is SQL Server fully featured compared to other products? In this session we answer these questions. We start illustrating the concepts behind the model; how relationships are handled and what are the common patterns and issues for a graph. What are the data connections a graph can easily represent. Then we compare the semantic model with SQL Server to discover how to apply it to real world. We analyze some case study: pattern matching, path finding, aggregation, ranking For each of them we show how to use standard T-SQL and how to rewrite the query using graph objects. What is the benefit of reformulate our queries in terms of clearness and performances, what is already available in order to consider SQL Server a valuable player.

3 BIG Thanks to SQL Sat Denmark sponsors GOLD SILVER BRONZE

4 Raffle and goodbye Beer Remember to visit the sponsors, stay for the raffle and goodbye beers Join our sponsors for a lunch break session in : cust 0.01 and cust 1.06 We hope you ll all have a great Saturday. Regis, Kenneth

5 Speaker Info First name: Andrea. Last name: Martorana Tusa. Microsoft MVP Data Platform Title: BI Specialist (database, datawarehouse, cubes, reporting,, big data,.) Company: Widex. A Danish manufacturer of hearing aids. Speaker for many community driven events: SQL Saturday (all Europe), Power BI Summit (Ireland), Power BI World Tour (Denmark), SQL Konferenz (Germany), Data Minds Connects (Belgium), SQL Nexus (Denmark), Intelligent Cloud (Denmark), SQL Days (Poland), Author for sqlservercentral.com, sqlshack.com, UGISS (User Group Italiano SQL Server). andrea.martoranatusa@gmail.com

6 Agenda Introducing graphs databases Graphs and SQL Server 2017 Query sintax and T-SQL graph exentions in SQL Server 2017 Rethink your code: how to query a graph database

7 Introducing graphs

8 What a graph is? A graph is a collection of Nodes and Edges Nodes = Entities (customers, products, territories, ) Edges = Relationships between entities Properties = Node or Edge attributes

9 What a graph is? Node Represents an entity: Product, Customer, Supplier, Nodes can contain some properties Nodes can be labeled with one or more labels Stored as physical table in the database

10 What a graph is? Edges Relationships between entities Relationships are named and directed and always have a start and end node Relationship can also contain properties Stored as physical table in the database

11 What a graph is? A graph database adds to graph features (Nodes and Edges) the standard CRUD methods available for every DBMS (Create, Read, Update, Delete)

12 What a graph is? The strength of graph databases lies in the concepts of relationships and connection between elements In a graph database connected data is stored as connected data. In a relational database data is stored in different tables linked through joins. Furthermore the flexibility of a graph model allows to add new nodes and new edges without compromising the existing structure.

13 What a graph is? Edges Nodes

14 What a graph is?

15 What a graph is? Twitter relationships and users messages Robinson, Webber, Eifrem Graph Databases O Reilly

16 Why using a graph? Typical use cases for a graph database: Real-Time Recommendation Engines correlate product, customer, inventory, supplier, logistics and even social sentiment data. Instantly capture any new interests shown in the customer s current visit Master Data Management unify your master data, including customer, product, supplier and logistics information to power the next generation of ecommerce, fraud detection, supply chain and logistics applications Social networks people and interactions, how they are related over a social media. Who follows who on Twitter, who is friend of who on Facebook. Network & IoT interconnections of devices, machines, sending signals to a receiver Identity & Access Management Managing multiple changing roles, groups, products and authorizations seamlessly track all identity and access authorizations and inheritances

17 Graphs and SQL Server 2017

18 SQL graph database architecture Source:

19 Writing queries in a graph database There s nothing you can do in a graph database that cannot be done in a relational database A graph database can handle some relationships easier than a relationship database. Some queries can be written in a more linear way A graph database is optimized for higly connected data

20 SQL graph database architecture Users can create one graph per database Two new tables types Node or edge tables can be created under any schema in the database Since nodes and edges are stored in tables, most of the operations supported on regular tables are supported on node or edge tables Users can model many-to-many relationships using edge tables. A single edge type can connect multiple type of nodes with each other, in contrast to foreign keys in relational tables.

21 Node tables Every time a node table is created, along with the user-defined columns, an implicit $node_id column is created, which uniquely identifies a given node in the database The values in $node_id are automatically generated and are a combination of object_id of that node table and an internally generated bigint value When the $node_id column is selected, a computed value in the form of a JSON string is displayed

22 Edge tables Edges are always directed and connect two nodes. An edge table enables users to model many-to-many relationships in the graph Every time an edge table is created, along with the user-defined attributes, three implicit columns are created in the edge table: 1. $edge_id: Uniquely identifies a given edge in the database 2. $from_id: Stores the $node_id of the node, from where the edge originates 3. $to_id: Stores the $node_id of the node, at which the edge terminates

23 Node and edge tables in SQL Server

24 Query sintax and T-SQL graph exentions in SQL Server 2017

25 T-SQL Extensions CREATE TABLE AS NODE / AS EDGE CREATE EDGE CONSTRAINTS: enforce specific semantics and maintain data integrity MATCH: built-in function to support pattern matching and traversal through the graph

26 T-SQL Extensions MATCH Specifies a search condition for a graph. MATCH can be used only with graph node and edge tables, in the SELECT statement as part of WHERE clause. Syntax: node-(edge)->node or node<-(edge) node From one node to another via an edge Edge names inside brackets Easier than a relational JOIN

27 T-SQL Extensions Cypher START a=node:user(name='michael') MATCH (a)-[:knows]->(b)-[:knows]->(c), (a)-[:knows]->(c) RETURN b, c T-SQL SELECT Person2.name AS FriendName FROM Person person1, friend, Person person2 WHERE MATCH(Person1-(friend)->Person2) AND Person1.name = 'Michael' START: starting point in the graph MATCH: relationship pattern RETURN: what data return to query engine SELECT FROM WHERE MATCH

28 T-SQL Extensions New system functions to extract information from the generated columns. OBJECT_ID_FROM_NODE_ID GRAPH_ID_FROM_NODE_ID NODE_ID_FROM_PARTS OBJECT_ID_FROM_EDGE_ID GRAPH_ID_FROM_EDGE_ID EDGE_ID_FROM_PARTS

29 Rethink your code: how to query a graph database

30 Demo: social relationship Relational DB 1: LivesIn PersonID 1: Person PersonID 1: CityID PersonName City CityID CityName FriendOf PersonID1 PersonID2 Likes PersonID RestaurantID Rating LocatedIn 1: 1: CityID RestaurantID Restaurant RestaurantID RestaurantName 1:

31 Demo: social relationship Graph DB Nodes Person City Restaurant Edges LivesIn Likes LocatedIn Friends

32 Demo: social relationship Search for all the restaurants that John s friend like Relational Person1 John 1: FriendOf John. Likes Person2 :1 1: Mary :1 Mary Pizza Hut Alice 9 Restaurant Pizza Hut Graph FriendOf Likes Person Restaurant

33 Demo: social relationship Search for all the restaurants that John s friend like Relational Person1 FriendsOf Person2 Likes Restaurant 1: :1 1: :1 Graph Person1 Person2 Restaurant FriendOF Likes

34 Hierarchies Implement hierarchies in a database All columns in one table Different related tables Self-Join table Graph DB Nodes are related via Edges No redundancy Handle many-to-many relationships Handle multiple hierarchies Easy to write and read

35 Hierarchies Is Manager Alice Ken Peter Is Report Is Manager Is Report Employee

36 Hierarchies - Limitations Currently complex traverses not supported via MATCH. Cannot browse up to the first level of the hierarchy Must wrap the query into a loop, a function, (not a recursive CTE) to perform transitive closure on your hierarchy

37 Graph Reporting in Power BI Use Force Directed Graph custom visual in Power BI to visualize connections between data

38 Merge relational and graph queries Graph database features are integrated with the database engine. You can work with graph and relational data side-byside, for instance merging graph tables into an existing relational structure. Nodes Stores SalesReps Products Vendors Edges Purchases Sells Supplies

39 Route calcolation and shortest path Global Post parcel network Robinson, Webber, Eifrem Graph Databases O Reilly

40 Route calcolation and shortest path Graph database model associated to the network Two types of connections: CONNECTED_TO DELIVERY_ROUTE Robinson, Webber, Eifrem Graph Databases O Reilly

41 Route calcolation and shortest path Route calculations involve finding the cheapest route between two locations. Requirements is that calculated route must go via at least one parcel center in the part of the graph. Robinson, Webber, Eifrem Graph Databases O Reilly

42 Route calcolation and shortest path START s=node:location(name={startlocation}), e=node:location(name={endlocation}) MATCH upleg = (s)<-[:delivery_route*1..2]-(db1) WHERE all(r in relationships(upleg) WHERE r.start_date <= {intervalstart} AND r.end_date >= {intervalend}) WITH e, upleg, db1 MATCH downleg = (db2)-[:delivery_route*1..2]->(e) WHERE all(r in relationships(downleg) WHERE r.start_date <= {intervalstart} AND r.end_date >= {intervalend}) WITH db1, db2, upleg, downleg MATCH toproute = (db1)<-[:connected_to]-()-[:connected_to*1..3]-(db2) WHERE all(r in relationships(toproute) WHERE r.start_date <= {intervalstart} AND r.end_date >= {intervalend}) WITH upleg, downleg, toproute, reduce(weight=0, r in relationships(toproute) : weight+r.cost) AS score ORDER BY score ASC LIMIT 1 RETURN (nodes(upleg) + tail(nodes(toproute)) + tail(nodes(downleg))) AS n Cypher query to calculate parcel route Robinson, Webber, Eifrem Graph Databases O Reilly

43 Route calcolation and shortest path A traversal-based implementation of the route calculation engine must solve two problems: finding shortest paths, and filtering paths based on time period. The real solution for calculating this routes has been implemented using a traversal framewok engine available into a native graph database (Neo4J). This kind of calculation is not replicable in the current version of SQL Server. The database engine does not allow traversal functions and some clauses are missing. Robinson, Webber, Eifrem Graph Databases O Reilly

44 Summary What is ready Get rid of redundancy Write simple queries with MATCH pattern Handle higly connected data Handle many-to-many rel Handle hierarchical data with multiple parents What is missing Using nodes as derived table in complex queries No Update for edges Edges constraints OR and NOT operators in MATCH pattern Traversal functions Routing Shortest path

45 Summary What is coming (SQL Server 2019) Edge constraints Check on node types Check on existing nodes Force referential integrity

46 Raffle and goodbye Beer Remember to visit the sponsors, stay for the raffle and goodbye beers Join our sponsors for a lunch break session in : cust 0.01 and cust 1.06 We hope you ll all have a great Saturday. Regis, Kenneth

47 BIG Thanks to SQL Sat Denmark sponsors GOLD SILVER BRONZE

48 References / introduction/

Overview Architecture Sample

Overview Architecture Sample Table of Contents Overview Architecture Sample Graph processing with SQL Server and Azure SQL Database 1/17/2018 2 min to read Edit Online THIS TOPIC APPLIES TO: SQL Server (starting with 2017) Azure SQL

More information

Let Me Graph That For You

Let Me Graph That For You Let Me Graph That For You @iansrobinson ian@neotechnology.com complexity = f(size, variable structure, connectedness) Graphs Are Everywhere Graph Databases Store Manage Query data Neo4j is a Graph Database

More information

Andrea Martorana Tusa. Customizing SQL Server 2016 Mobile Report Publisher

Andrea Martorana Tusa. Customizing SQL Server 2016 Mobile Report Publisher Andrea Martorana Tusa Customizing SQL Server 2016 Mobile Report Publisher Thanks to our sponsors! Speaker info First name: Andrea. Last name: Martorana Tusa. Italian, former working as BI developer in

More information

Sergio Govoni. SQL Server 2017 Graph Database

Sergio Govoni. SQL Server 2017 Graph Database Sergio Govoni SQL Server 2017 Graph Database Sponsors Organizers GetLatestVersion.it SQL Saturday Slovenia 2017 DEVELOPER He has been a software developer for almost 20 years. He received a Computer Science

More information

Andrea Martorana Tusa. T-SQL Advanced: Grouping and Windowing

Andrea Martorana Tusa. T-SQL Advanced: Grouping and Windowing Andrea Martorana Tusa T-SQL Advanced: Grouping and Windowing Sponsor Organizzatori GetLatestVersion. it Speaker info First name: Andrea. Last name: Martorana Tusa. Italian, working by Widex a danish company

More information

Andrea Martorana Tusa. Failure prediction for manifacturing industry

Andrea Martorana Tusa. Failure prediction for manifacturing industry Andrea Martorana Tusa Failure prediction for manifacturing industry Event Sponsors Expo Sponsors Expo Light Sponsors Speaker Info First name: Andrea. Last name: Martorana Tusa. Italian, working by Widex

More information

SQL Saturday Cork Welcome to Cork. Andrea Martorana Tusa T-SQL advanced: Grouping and Windowing

SQL Saturday Cork Welcome to Cork. Andrea Martorana Tusa T-SQL advanced: Grouping and Windowing SQL Saturday Cork Welcome to Cork Andrea Martorana Tusa T-SQL advanced: Grouping and Windowing Andrea Martorana Tusa T-SQL Advanced: Grouping and Windowing Speaker info First name: Andrea. Last name: Martorana

More information

SQL Saturday Cork Welcome to Cork. SQL Server 2017 Graph feature

SQL Saturday Cork Welcome to Cork. SQL Server 2017 Graph feature SQL Saturday Cork Welcome to Cork SQL Server 2017 Graph feature 1 About me Rudi Bruchez rudi@babaluga.com www.babaluga.com 2 Agenda What are graphs anyway? Graph databases and SQL Server What you cannot

More information

Hands-on immersion on Big Data tools

Hands-on immersion on Big Data tools Hands-on immersion on Big Data tools NoSQL Databases Donato Summa THE CONTRACTOR IS ACTING UNDER A FRAMEWORK CONTRACT CONCLUDED WITH THE COMMISSION Summary : Definition Main features NoSQL DBs classification

More information

Handling Advanced Data Warehouse Scenarios in SSIS

Handling Advanced Data Warehouse Scenarios in SSIS Handling Advanced Data Warehouse Scenarios in SSIS John Welch, BI Architect @ Varigence MVP SQL Server Agenda Late Arriving Dimensions Parent-Child Dimensions Type 3 and Type 6 Dimensions 3 About Me John

More information

What is a multi-model database and why use it?

What is a multi-model database and why use it? What is a multi-model database and why use it? An When it comes to choosing the right technology for a new project, ongoing development or a full system upgrade, it can often be challenging to define the

More information

DISCUSSION 5min 2/24/2009. DTD to relational schema. Inlining. Basic inlining

DISCUSSION 5min 2/24/2009. DTD to relational schema. Inlining. Basic inlining XML DTD Relational Databases for Querying XML Documents: Limitations and Opportunities Semi-structured SGML Emerging as a standard E.g. john 604xxxxxxxx 778xxxxxxxx

More information

Neo4J: Graph Database

Neo4J: Graph Database February 24, 2013 Basics is a data storage and query system designed for storing graphs. Data as a series of relationships, modelled as a directed graph. Recall, a graph is a pair of sets: G(V, E) vertices

More information

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 6 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA

More information

NOSQL Databases and Neo4j

NOSQL Databases and Neo4j NOSQL Databases and Neo4j Database and DBMS Database - Organized collection of data The term database is correctly applied to the data and their supporting data structures. DBMS - Database Management System:

More information

16/06/56. Databases. Databases. Databases The McGraw-Hill Companies, Inc. All rights reserved.

16/06/56. Databases. Databases. Databases The McGraw-Hill Companies, Inc. All rights reserved. Distinguish between the physical and logical views of data. Describe how data is organized: characters, fields, records, tables, and databases. Define key fields and how they are used to integrate data

More information

Databases The McGraw-Hill Companies, Inc. All rights reserved.

Databases The McGraw-Hill Companies, Inc. All rights reserved. Distinguish between the physical and logical views of data. Describe how data is organized: characters, fields, records, tables, and databases. Define key fields and how they are used to integrate data

More information

Business Analytics in the Oracle 12.2 Database: Analytic Views. Event: BIWA 2017 Presenter: Dan Vlamis and Cathye Pendley Date: January 31, 2017

Business Analytics in the Oracle 12.2 Database: Analytic Views. Event: BIWA 2017 Presenter: Dan Vlamis and Cathye Pendley Date: January 31, 2017 Business Analytics in the Oracle 12.2 Database: Analytic Views Event: BIWA 2017 Presenter: Dan Vlamis and Cathye Pendley Date: January 31, 2017 Vlamis Software Solutions Vlamis Software founded in 1992

More information

Cortana Analytics : with Raspberry Pi and Weather Sensor

Cortana Analytics : with Raspberry Pi and Weather Sensor Cortana Analytics : with Raspberry Pi and Weather Sensor Leila Etaati (Microsoft MVP, PhD, Consultant, and Data science) #614 SQL Saturday South Island Leila Etaati Leila is Microsoft Data Platform MVP,

More information

Intro to Neo4j and Graph Databases

Intro to Neo4j and Graph Databases Intro to Neo4j and Graph Databases David Montag Neo Technology! david@neotechnology.com Early Adopters of Graph Technology Survival of the Fittest Evolution of Web Search Pre-1999 WWW Indexing 1999-2012

More information

8) A top-to-bottom relationship among the items in a database is established by a

8) A top-to-bottom relationship among the items in a database is established by a MULTIPLE CHOICE QUESTIONS IN DBMS (unit-1 to unit-4) 1) ER model is used in phase a) conceptual database b) schema refinement c) physical refinement d) applications and security 2) The ER model is relevant

More information

Things I Learned The Hard Way About Azure Data Platform Services So You Don t Have To -Meagan Longoria

Things I Learned The Hard Way About Azure Data Platform Services So You Don t Have To -Meagan Longoria Things I Learned The Hard Way About Azure Data Platform Services So You Don t Have To -Meagan Longoria 2 University of Nebraska at Omaha Special thanks to UNO and the College of Business Administration

More information

How to analyze JSON with SQL

How to analyze JSON with SQL How to analyze JSON with SQL SCHEMA-ON-READ MADE EASY Author: Kent Graziano 1 What s inside 3 Semi-structured brings new insights to business 4 Schema? No need! 5 How Snowflake solved this problem 6 Enough

More information

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] 1. What is DBMS? A Database Management System (DBMS) is a program that controls creation, maintenance and use

More information

E6885 Network Science Lecture 10: Graph Database (II)

E6885 Network Science Lecture 10: Graph Database (II) E 6885 Topics in Signal Processing -- Network Science E6885 Network Science Lecture 10: Graph Database (II) Ching-Yung Lin, Dept. of Electrical Engineering, Columbia University November 18th, 2013 Course

More information

Chapter 6. Foundations of Business Intelligence: Databases and Information Management VIDEO CASES

Chapter 6. Foundations of Business Intelligence: Databases and Information Management VIDEO CASES Chapter 6 Foundations of Business Intelligence: Databases and Information Management VIDEO CASES Case 1a: City of Dubuque Uses Cloud Computing and Sensors to Build a Smarter, Sustainable City Case 1b:

More information

Overview. ❶ Short introduction to the company. ❶ Short history of database and DBMS. ❶ What is the next DBMS s generation? ❶ Introduction to Tamino

Overview. ❶ Short introduction to the company. ❶ Short history of database and DBMS. ❶ What is the next DBMS s generation? ❶ Introduction to Tamino ❶ The XML Company Overview ❶ Short introduction to the company ❶ Short history of database and DBMS ❶ What is the next DBMS s generation? ❶ Introduction to Tamino Enterprise Transaction Suite High-Performance

More information

Chapter 6 VIDEO CASES

Chapter 6 VIDEO CASES Chapter 6 Foundations of Business Intelligence: Databases and Information Management VIDEO CASES Case 1a: City of Dubuque Uses Cloud Computing and Sensors to Build a Smarter, Sustainable City Case 1b:

More information

RavenDB & document stores

RavenDB & document stores université libre de bruxelles INFO-H415 - Advanced Databases RavenDB & document stores Authors: Yasin Arslan Jacky Trinh Professor: Esteban Zimányi Contents 1 Introduction 3 1.1 Présentation...................................

More information

NETWORK FAILURES AND ROOT CAUSE ANALYSIS: AN APPROACH USING GRAPH DATABASES

NETWORK FAILURES AND ROOT CAUSE ANALYSIS: AN APPROACH USING GRAPH DATABASES NETWORK FAILURES AND ROOT CAUSE ANALYSIS: AN APPROACH USING GRAPH DATABASES 1 A. VIJAY KUMAR, 2 G. ANJAN BABU Department of Computer Science, S V University, Tirupati, India Abstract - Detecting the origin

More information

Chapter 11: Data Management Layer Design

Chapter 11: Data Management Layer Design Systems Analysis and Design With UML 2.0 An Object-Oriented Oriented Approach, Second Edition Chapter 11: Data Management Layer Design Alan Dennis, Barbara Wixom, and David Tegarden 2005 John Wiley & Sons,

More information

Teiid Designer User Guide 7.5.0

Teiid Designer User Guide 7.5.0 Teiid Designer User Guide 1 7.5.0 1. Introduction... 1 1.1. What is Teiid Designer?... 1 1.2. Why Use Teiid Designer?... 2 1.3. Metadata Overview... 2 1.3.1. What is Metadata... 2 1.3.2. Editing Metadata

More information

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases Systems Analysis and Design in a Changing World, Fourth Edition Chapter : Designing Databases Learning Objectives Describe the differences and similarities between relational and object-oriented database

More information

BIG DATA TECHNOLOGIES: WHAT EVERY MANAGER NEEDS TO KNOW ANALYTICS AND FINANCIAL INNOVATION CONFERENCE JUNE 26-29,

BIG DATA TECHNOLOGIES: WHAT EVERY MANAGER NEEDS TO KNOW ANALYTICS AND FINANCIAL INNOVATION CONFERENCE JUNE 26-29, BIG DATA TECHNOLOGIES: WHAT EVERY MANAGER NEEDS TO KNOW ANALYTICS AND FINANCIAL INNOVATION CONFERENCE JUNE 26-29, 2016 1 OBJECTIVES ANALYTICS AND FINANCIAL INNOVATION CONFERENCE JUNE 26-29, 2016 2 WHAT

More information

CIS Advanced Databases Group 14 Nikita Ghare Pratyoush Srivastava Prakriti Vardhan Chinmaya Kelkar

CIS Advanced Databases Group 14 Nikita Ghare Pratyoush Srivastava Prakriti Vardhan Chinmaya Kelkar CIS 6930 - Advanced Databases Group 14 Nikita Ghare Pratyoush Srivastava Prakriti Vardhan Chinmaya Kelkar Contents What is a graph database? RDBMS vs graph databases Introduction to Neo4j Data Model Architecture

More information

Graph Databases. Graph Databases. May 2015 Alberto Abelló & Oscar Romero

Graph Databases. Graph Databases. May 2015 Alberto Abelló & Oscar Romero Graph Databases 1 Knowledge Objectives 1. Describe what a graph database is 2. Explain the basics of the graph data model 3. Enumerate the best use cases for graph databases 4. Name two pros and cons of

More information

ArcGIS for Server: Publishing and Using Map Services

ArcGIS for Server: Publishing and Using Map Services ArcGIS for Server: Publishing and Using Map Services Matthias Schenker Gerhard Trichtl m.schenker@esri.ch g.trichtl@mysynergis.com Agenda Platform overview Publishing services - Demo: Publishing hosted

More information

Review -Chapter 4. Review -Chapter 5

Review -Chapter 4. Review -Chapter 5 Review -Chapter 4 Entity relationship (ER) model Steps for building a formal ERD Uses ER diagrams to represent conceptual database as viewed by the end user Three main components Entities Relationships

More information

Making MongoDB Accessible to All. Brody Messmer Product Owner DataDirect On-Premise Drivers Progress Software

Making MongoDB Accessible to All. Brody Messmer Product Owner DataDirect On-Premise Drivers Progress Software Making MongoDB Accessible to All Brody Messmer Product Owner DataDirect On-Premise Drivers Progress Software Agenda Intro to MongoDB What is MongoDB? Benefits Challenges and Common Criticisms Schema Design

More information

What is database? Types and Examples

What is database? Types and Examples What is database? Types and Examples Visit our site for more information: www.examplanning.com Facebook Page: https://www.facebook.com/examplanning10/ Twitter: https://twitter.com/examplanning10 TABLE

More information

A Li%le Graph Theory for the Busy Developer. Jim Webber Chief Scien?st, Neo

A Li%le Graph Theory for the Busy Developer. Jim Webber Chief Scien?st, Neo A Li%le Graph Theory for the Busy Developer Jim Webber Chief Scien?st, Neo Technology @jimwebber Roadmap Imprisoned data Graph models Graph theory Local proper?es, global behaviours Predic?ve techniques

More information

Technology Enhancements for SQL Server 2014/2016 Developers. Wylie Blanchard Lead IT Consultant; SQL Server DBA

Technology Enhancements for SQL Server 2014/2016 Developers. Wylie Blanchard Lead IT Consultant; SQL Server DBA Technology Enhancements for SQL Server 2014/2016 Developers Wylie Blanchard Lead IT Consultant; SQL Server DBA About Great Tech Pros Great Tech Pros was founded in 2012 Specialties include: IT Consulting

More information

The Associative Model of Data and Sentences. The Next Generation of Structured Data. Lazysoft. Copyright 2014 Lazysoft

The Associative Model of Data and Sentences. The Next Generation of Structured Data. Lazysoft. Copyright 2014 Lazysoft The Associative Model of Data and Sentences The Next Generation of Structured Data Lazysoft Origin of Data Models Enabled computers to access data instantly Big Data V1.0 History of Data Models 1960 1970

More information

Performance Issue : More than 30 sec to load. Design OK, No complex calculation. 7 tables joined, 500+ millions rows

Performance Issue : More than 30 sec to load. Design OK, No complex calculation. 7 tables joined, 500+ millions rows Bienvenue Nicolas Performance Issue : More than 30 sec to load Design OK, No complex calculation 7 tables joined, 500+ millions rows Denormalize, Materialized Views, Columnstore Index Less than 5 sec to

More information

CIS 330: Web-driven Web Applications. Lecture 2: Introduction to ER Modeling

CIS 330: Web-driven Web Applications. Lecture 2: Introduction to ER Modeling CIS 330: Web-driven Web Applications Lecture 2: Introduction to ER Modeling 1 Goals of This Lecture Understand ER modeling 2 Last Lecture Why Store Data in a DBMS? Transactions (concurrent data access,

More information

Test bank for accounting information systems 1st edition by richardson chang and smith

Test bank for accounting information systems 1st edition by richardson chang and smith Test bank for accounting information systems 1st edition by richardson chang and smith Chapter 04 Relational Databases and Enterprise Systems True / False Questions 1. Three types of data models used today

More information

Oliver Engels & Tillmann Eitelberg. Big Data! Big Quality?

Oliver Engels & Tillmann Eitelberg. Big Data! Big Quality? Oliver Engels & Tillmann Eitelberg Big Data! Big Quality? Sponsors help us to run this event! THX! You Rock! Sponsor Gold Sponsor Silver Sponsor Bronze Sponsor You Rock! Sponsor Session 13:45 Track 1 Das

More information

L24: NoSQL (continued) CS3200 Database design (sp18 s2) 4/12/2018

L24: NoSQL (continued) CS3200 Database design (sp18 s2)   4/12/2018 L24: NoSQL (continued) CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 4/12/2018 71 Last Class today NoSQL (15min): Graph DBs Course Evaluation (15min) Course review 72 Outline

More information

The Entity-Relationship Model. Overview of Database Design

The Entity-Relationship Model. Overview of Database Design The Entity-Relationship Model Chapter 2, Chapter 3 (3.5 only) Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Overview of Database Design Conceptual design: (ER Model is used at this stage.)

More information

Chapter 1: Introduction

Chapter 1: Introduction Chapter 1: Introduction Chapter 2: Intro. To the Relational Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Database Management System (DBMS) DBMS is Collection of

More information

Advanced Scripting Using SSIS Script Tasks and Components

Advanced Scripting Using SSIS Script Tasks and Components Advanced Scripting Using SSIS Script Tasks and Components John Welch, VP of Software Thank You Presenting Sponsors Gain insights through familiar tools while balancing monitoring and managing user created

More information

Five Common Myths About Scaling MySQL

Five Common Myths About Scaling MySQL WHITE PAPER Five Common Myths About Scaling MySQL Five Common Myths About Scaling MySQL In this age of data driven applications, the ability to rapidly store, retrieve and process data is incredibly important.

More information

Database Administration for Azure SQL DB

Database Administration for Azure SQL DB Database Administration for Azure SQL DB Martin Cairney SQL Saturday #582, Melbourne 11 th February 2017 Housekeeping Mobile Phones Please set to stun during sessions Evaluations Please complete a session

More information

ETL Best Practices and Techniques. Marc Beacom, Managing Partner, Datalere

ETL Best Practices and Techniques. Marc Beacom, Managing Partner, Datalere ETL Best Practices and Techniques Marc Beacom, Managing Partner, Datalere Thank you Sponsors Experience 10 years DW/BI Consultant 20 Years overall experience Marc Beacom Managing Partner, Datalere Current

More information

Storing data in databases

Storing data in databases Storing data in databases The webinar will begin at 3pm You now have a menu in the top right corner of your screen. The red button with a white arrow allows you to expand and contract the webinar menu,

More information

IT1105 Information Systems and Technology. BIT 1 ST YEAR SEMESTER 1 University of Colombo School of Computing. Student Manual

IT1105 Information Systems and Technology. BIT 1 ST YEAR SEMESTER 1 University of Colombo School of Computing. Student Manual IT1105 Information Systems and Technology BIT 1 ST YEAR SEMESTER 1 University of Colombo School of Computing Student Manual Lesson 3: Organizing Data and Information (6 Hrs) Instructional Objectives Students

More information

20466C - Version: 1. Implementing Data Models and Reports with Microsoft SQL Server

20466C - Version: 1. Implementing Data Models and Reports with Microsoft SQL Server 20466C - Version: 1 Implementing Data Models and Reports with Microsoft SQL Server Implementing Data Models and Reports with Microsoft SQL Server 20466C - Version: 1 5 days Course Description: The focus

More information

WHAT S NEW IN SQL SERVER 2017

WHAT S NEW IN SQL SERVER 2017 WHAT S NEW IN SQL SERVER 2017 Linux Support Graph Tables Intelligent Query Processing Resumable Online Index Rebuild Machine Learning Services In-Memory Tables HASAN SAVRAN 3/17/2018 SQL SATURDAY CINCINNATI

More information

Querying Data with Transact-SQL (761)

Querying Data with Transact-SQL (761) Querying Data with Transact-SQL (761) Manage data with Transact-SQL Create Transact-SQL SELECT queries Identify proper SELECT query structure, write specific queries to satisfy business requirements, construct

More information

Taming Structured And Unstructured Data With SAP HANA Running On VCE Vblock Systems

Taming Structured And Unstructured Data With SAP HANA Running On VCE Vblock Systems 1 Taming Structured And Unstructured Data With SAP HANA Running On VCE Vblock Systems The Defacto Choice For Convergence 2 ABSTRACT & SPEAKER BIO Dealing with enormous data growth is a key challenge for

More information

Conceptual Design with ER Model

Conceptual Design with ER Model Conceptual Design with ER Model Lecture #2 1/24/2012 Jeff Ballard CS564, Spring 2014, Database Management Systems 1 See the Moodle page Due February 7 Groups of 2-3 people Pick a team name Homework 1 is

More information

CS/INFO 330 Entity-Relationship Modeling. Announcements. Goals of This Lecture. Mirek Riedewald

CS/INFO 330 Entity-Relationship Modeling. Announcements. Goals of This Lecture. Mirek Riedewald CS/INFO 330 Entity-Relationship Modeling Mirek Riedewald mirek@cs.cornell.edu Announcements Office hour update (see class homepage) First homework assignment will be available from CMS later today Some

More information

Normalization. Normal Forms. Normal Forms

Normalization. Normal Forms. Normal Forms Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities. 5- Normal Forms First Normal Form (NF) There are no attributes

More information

CS6302 DBMS 2MARK & 16 MARK UNIT II SQL & QUERY ORTIMIZATION 1. Define Aggregate Functions in SQL? Aggregate function are functions that take a collection of values as input and return a single value.

More information

Introduction to the MySQL Document Store Alfredo Kojima, Rui Quelhas, Mike Zinner MySQL Middleware and Clients Team October 22, 2018

Introduction to the MySQL Document Store Alfredo Kojima, Rui Quelhas, Mike Zinner MySQL Middleware and Clients Team October 22, 2018 Introduction to the MySQL Document Store Alfredo Kojima, Rui Quelhas, Mike Zinner MySQL Middleware and Clients Team October 22, 2018 Safe Harbor Statement The following is intended to outline our general

More information

Reza Rad. Power Query and M Beyond Limits

Reza Rad. Power Query and M Beyond Limits Reza Rad Power Query and M Beyond Limits Thanks to our Event Sponsors PASS Summit 2018 Registration Offer Continue the learning. Save $150 USD Register for PASS Summit and as a participant in SQLSaturday

More information

Graph Analytics in the Big Data Era

Graph Analytics in the Big Data Era Graph Analytics in the Big Data Era Yongming Luo, dr. George H.L. Fletcher Web Engineering Group What is really hot? 19-11-2013 PAGE 1 An old/new data model graph data Model entities and relations between

More information

Dr. Michael Curry. Oregon. The Big Picture: SQL Overview and Getting the Most from SQL Saturday

Dr. Michael Curry. Oregon. The Big Picture: SQL Overview and Getting the Most from SQL Saturday Dr. Michael Curry michael.curry@wsu.edu Oregon The Big Picture: SQL Overview and Getting the Most from SQL Saturday Academic Data Management E-Commerce Entrepreneurship Dr. Michael Curry /michaellcurry/

More information

A Little Graph Theory for the Busy Developer. Dr. Jim Webber Chief Scientist, Neo

A Little Graph Theory for the Busy Developer. Dr. Jim Webber Chief Scientist, Neo A Little Graph Theory for the Busy Developer Dr. Jim Webber Chief Scientist, Neo Technology @jimwebber Roadmap Imprisoned data Graph models Graph theory Local properties, global behaviours Predictive techniques

More information

7. Query Processing and Optimization

7. Query Processing and Optimization 7. Query Processing and Optimization Processing a Query 103 Indexing for Performance Simple (individual) index B + -tree index Matching index scan vs nonmatching index scan Unique index one entry and one

More information

22/01/2018. Data Management. Data Entities, Attributes, and Items. Data Entities, Attributes, and Items. ACS-1803 Introduction to Information Systems

22/01/2018. Data Management. Data Entities, Attributes, and Items. Data Entities, Attributes, and Items. ACS-1803 Introduction to Information Systems ACS-1803 Introduction to Information Systems Instructor: Kerry Augustine Data Management Lecture Outline 2, Part 2 ACS-1803 Introduction to Information Systems Data Entities, Attributes, and Items Entity:

More information

Database Fundamentals Chapter 1

Database Fundamentals Chapter 1 Database Fundamentals Chapter 1 Class 01: Database Fundamentals 1 What is a Database? The ISO/ANSI SQL Standard does not contain a definition of the term database. In fact, the term is never mentioned

More information

BUILT FOR BUSINESS. 10 Reasons BlackBerry Smartphones Are Still the Best Way to Do Business. Whitepaper

BUILT FOR BUSINESS. 10 Reasons BlackBerry Smartphones Are Still the Best Way to Do Business. Whitepaper 1 BUILT FOR BUSINESS 10 Reasons BlackBerry Smartphones Are Still the Best Way to Do Business Whitepaper 2 10 Reasons BlackBerry Smartphones Are Still the Best Way to Do Business It doesn t matter what

More information

/ Cloud Computing. Recitation 7 October 10, 2017

/ Cloud Computing. Recitation 7 October 10, 2017 15-319 / 15-619 Cloud Computing Recitation 7 October 10, 2017 Overview Last week s reflection Project 3.1 OLI Unit 3 - Module 10, 11, 12 Quiz 5 This week s schedule OLI Unit 3 - Module 13 Quiz 6 Project

More information

Definition of terms Objectives Interpret history and role of SQL Define a database using SQL data definition iti language Write single table queries u

Definition of terms Objectives Interpret history and role of SQL Define a database using SQL data definition iti language Write single table queries u Chapter 7: Introduction to SQL Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Definition of terms Objectives

More information

CPS510 Database System Design Primitive SYSTEM STRUCTURE

CPS510 Database System Design Primitive SYSTEM STRUCTURE CPS510 Database System Design Primitive SYSTEM STRUCTURE Naïve Users Application Programmers Sophisticated Users Database Administrator DBA Users Application Interfaces Application Programs Query Data

More information

Topics. History. Architecture. MongoDB, Mongoose - RDBMS - SQL. - NoSQL

Topics. History. Architecture. MongoDB, Mongoose - RDBMS - SQL. - NoSQL Databases Topics History - RDBMS - SQL Architecture - SQL - NoSQL MongoDB, Mongoose Persistent Data Storage What features do we want in a persistent data storage system? We have been using text files to

More information

High-Level Database Models (ii)

High-Level Database Models (ii) ICS 321 Spring 2011 High-Level Database Models (ii) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 1 Logical DB Design: ER to Relational Entity sets to

More information

Chapter 24 NOSQL Databases and Big Data Storage Systems

Chapter 24 NOSQL Databases and Big Data Storage Systems Chapter 24 NOSQL Databases and Big Data Storage Systems - Large amounts of data such as social media, Web links, user profiles, marketing and sales, posts and tweets, road maps, spatial data, email - NOSQL

More information

Simple For each base table and order clause

Simple For each base table and order clause Simple For each base table and order clause To determine the base table GeneXus will extract the attributes referred in the For each then finds the tables where they are located: and takes the base table

More information

What is Grails4Notes(TM)?

What is Grails4Notes(TM)? What is Grails4Notes(TM)? Justin Hill, CTO, Prominic.NET, Inc. Copyright (c) 2014. All rights reserved. Trademarks mentioned herein are the rights of their respective owners. About me and Prominic: Co-founder

More information

The functions performed by a typical DBMS are the following:

The functions performed by a typical DBMS are the following: MODULE NAME: Database Management TOPIC: Introduction to Basic Database Concepts LECTURE 2 Functions of a DBMS The functions performed by a typical DBMS are the following: Data Definition The DBMS provides

More information

COURSE 20466D: IMPLEMENTING DATA MODELS AND REPORTS WITH MICROSOFT SQL SERVER

COURSE 20466D: IMPLEMENTING DATA MODELS AND REPORTS WITH MICROSOFT SQL SERVER ABOUT THIS COURSE The focus of this five-day instructor-led course is on creating managed enterprise BI solutions. It describes how to implement multidimensional and tabular data models, deliver reports

More information

Motivation and basic concepts Storage Principle Query Principle Index Principle Implementation and Results Conclusion

Motivation and basic concepts Storage Principle Query Principle Index Principle Implementation and Results Conclusion JSON Schema-less into RDBMS Most of the material was taken from the Internet and the paper JSON data management: sup- porting schema-less development in RDBMS, Liu, Z.H., B. Hammerschmidt, and D. McMahon,

More information

Relational Model. Topics. Relational Model. Why Study the Relational Model? Linda Wu (CMPT )

Relational Model. Topics. Relational Model. Why Study the Relational Model? Linda Wu (CMPT ) Topics Relational Model Linda Wu Relational model SQL language Integrity constraints ER to relational Views (CMPT 354 2004-2) Chapter 3 CMPT 354 2004-2 2 Why Study the Relational Model? Most widely used

More information

How to Deploy Enterprise Analytics Applications With SAP BW and SAP HANA

How to Deploy Enterprise Analytics Applications With SAP BW and SAP HANA How to Deploy Enterprise Analytics Applications With SAP BW and SAP HANA Peter Huegel SAP Solutions Specialist Agenda MicroStrategy and SAP Drilldown MicroStrategy and SAP BW Drilldown MicroStrategy and

More information

Systems Analysis & Design

Systems Analysis & Design Systems Analysis & Design Dr. Arif Sari Email: arif@arifsari.net Course Website: www.arifsari.net/courses/ Slide 1 Adapted from slides 2005 John Wiley & Sons, Inc. Slide 2 Course Textbook: Systems Analysis

More information

State of the Dolphin Developing new Apps in MySQL 8

State of the Dolphin Developing new Apps in MySQL 8 State of the Dolphin Developing new Apps in MySQL 8 Highlights of MySQL 8.0 technology updates Mark Swarbrick MySQL Principle Presales Consultant Jill Anolik MySQL Global Business Unit Israel Copyright

More information

Analyzing a social network using Big Data Spatial and Graph Property Graph

Analyzing a social network using Big Data Spatial and Graph Property Graph Analyzing a social network using Big Data Spatial and Graph Property Graph Oskar van Rest Principal Member of Technical Staff Gabriela Montiel-Moreno Principal Member of Technical Staff Safe Harbor Statement

More information

Oliver Engels & Tillmann Eitelberg. Big Data! Big Quality?

Oliver Engels & Tillmann Eitelberg. Big Data! Big Quality? Oliver Engels & Tillmann Eitelberg Big Data! Big Quality? Like to visit Germany? PASS Camp 2017 Main Camp 5.12 7.12.2017 (4.12 Kick Off Evening) Lufthansa Training & Conference Center, Seeheim SQL Konferenz

More information

Troubleshooting Always On Availability Groups Performance

Troubleshooting Always On Availability Groups Performance Andreas Wolter Troubleshooting Always On Availability Groups Performance Andreas Wolter (SQLMCM) 1 About: Andreas Wolter Consultant, Trainer & Speaker Microsoft Certified Master SQL Server 2008 + Solutions

More information

NOSQL, graph databases & Cypher

NOSQL, graph databases & Cypher NOSQL, graph databases & Cypher Advances in Data Management, 2018 Dr. Petra Selmer Engineer at Neo4j and member of the opencypher Language Group 1 About me Member of the Cypher Language Group Design new

More information

Using the MySQL Document Store

Using the MySQL Document Store Using the MySQL Document Store Alfredo Kojima, Sr. Software Dev. Manager, MySQL Mike Zinner, Sr. Software Dev. Director, MySQL Safe Harbor Statement The following is intended to outline our general product

More information

Graph Databases. Big Data Course. Antonio Maccioni. 24 April Rome. locatedin

Graph Databases. Big Data Course. Antonio Maccioni. 24 April Rome. locatedin ic p o t heldby wher e Big Data Course y email locatedin af fili at ed B offered Antonio Maccioni maccioni@dia.uniroma3.it Rome Of re tu 24 April 2014 lec wh en Graph Databases Graph Databases are an odd

More information

MetaMatrix Enterprise Data Services Platform

MetaMatrix Enterprise Data Services Platform MetaMatrix Enterprise Data Services Platform MetaMatrix Overview Agenda Background What it does Where it fits How it works Demo Q/A 2 Product Review: Problem Data Challenges Difficult to implement new

More information

! Define terms. ! Interpret history and role of SQL. ! Write single table queries using SQL. ! Establish referential integrity using SQL

! Define terms. ! Interpret history and role of SQL. ! Write single table queries using SQL. ! Establish referential integrity using SQL OBJECTIVES CHAPTER 6: INTRODUCTION TO SQL Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi! Define terms! Interpret history and role of SQL! Define a database using SQL

More information

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built

More information

Complete. The. Reference. Christopher Adamson. Mc Grauu. LlLIJBB. New York Chicago. San Francisco Lisbon London Madrid Mexico City

Complete. The. Reference. Christopher Adamson. Mc Grauu. LlLIJBB. New York Chicago. San Francisco Lisbon London Madrid Mexico City The Complete Reference Christopher Adamson Mc Grauu LlLIJBB New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore Sydney Toronto Contents Acknowledgments

More information

Data Architectures in Azure for Analytics & Big Data

Data Architectures in Azure for Analytics & Big Data Data Architectures in for Analytics & Big Data October 20, 2018 Melissa Coates Solution Architect, BlueGranite Microsoft Data Platform MVP Blog: www.sqlchick.com Twitter: @sqlchick Data Architecture A

More information

SYED AMMAL ENGINEERING COLLEGE

SYED AMMAL ENGINEERING COLLEGE CS6302- Database Management Systems QUESTION BANK UNIT-I INTRODUCTION TO DBMS 1. What is database? 2. Define Database Management System. 3. Advantages of DBMS? 4. Disadvantages in File Processing System.

More information