Mapping Shema and Recursively Managing Data

Slides:



Advertisements
Similar presentations
Designing Tables in Microsoft Access By Ed Lance.
Advertisements

Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Module 9: Managing Schema Objects. Overview Naming guidelines for identifiers in schema object definitions Storage and structure of schema objects Implementing.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Database Technical Session By: Prof. Adarsh Patel.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Relationships and Advanced Query Concepts Using Multiple Tables Please use speaker notes for additional information!
Microsoft SQL Server 2008 R2 IT:Network:Applications.
© 2002 by Prentice Hall 1 Database Processing with Microsoft Access David M. Kroenke Database Concepts 1e Appendix A.
SE305 Database System Technology 23/10/2014 Quiz-2.
Rebecca McCready Faculty of Medical Sciences Newcastle University Lecture 2 – Relationships and Lookup fields.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Chapter 3: Relational Databases
Dynamic SQL Writing Efficient Queries on the Fly ED POLLACK AUTOTASK CORPORATION DATABASE OPTIMIZATION ENGINEER.
Diving into Query Execution Plans ED POLLACK AUTOTASK CORPORATION DATABASE OPTIMIZATION ENGINEER.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
Database Design: Solving Problems Before they Start! Ed Pollack Database Administrator CommerceHub.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
Relational Database Designer for pgAdmin Guillaume Lelarge Luis Ochoa PGConf.EU 2011.
SQL - Training Rajesh Charles. Agenda (Complete Course) Introduction Testing Methodologies Manual Testing Practical Workshop Automation Testing Practical.
DBM 380 AID Focus Dreams/dbm380aid.com
Logical Database Design and the Rational Model
Supervisor : Trần Vinh Thu
Query Optimization Techniques
Dynamic SQL Writing Efficient Queries on the Fly
Creating an ERD in SQL Server
Introduction to unit and integration testing with tSQLt
DBM 380 aid Perfect Education/dbm380aid.com
COP 4540 Database Management
Information Systems Today: Managing in the Digital World
DBM 380 aid Education Begins/dbm380aid.com
Introduction to Microsoft Access
Dynamic SQL: Writing Efficient Queries on the Fly
SQL MODELER - OPEN There are Three Ways to open the SQL Modeler
Efficiently Searching Schema in SQL Server
Building Effective Backups
Dynamic SQL Writing Efficient Queries on the Fly
RELATIONAL DATABASE MODEL
Translation of ER-diagram into Relational Schema
Databases and Information Management
Transactional Replication A Deeper Dive Drew Furgiuele, Senior DBA IGS
Basic Concepts in Data Management
Accounting System Design
Normalization Referential Integrity
Query Optimization Techniques
SQL Server and PowerShell Let’s Get Serious
Introduction to relational databases and MySQL
Tracking Index Usage Like a Pro
Dynamic SQL: Writing Efficient Queries on the Fly
Please thank our sponsors!
These are slides from Dr. Phil Cannata’s Class
Accounting System Design
Databases and Information Management
Data Management Innovations 2017 High level overview of DB
Finding Islands, Gaps, and Clusters in Complex Data
Insight into the SQL Server Buffer Cache
Diving into Query Execution Plans
Tracking Index Usage Like a Pro
Finding Islands, Gaps, and Clusters in Complex Data
Understand the purpose of normalisation in terms of reducing duplication of data  Understand the purpose of Primary and Secondary Keys in a Database  Learning.
Query Optimization Techniques
Oracle SQL Developer Data Modeler
Creating and Using Calendar Tables
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Finding Islands, Gaps, and Clusters in Complex Data
Presentation transcript:

Mapping Shema and Recursively Managing Data Ed Pollack Sr. Database Administrator Autotask

Agenda Reporting and learning about schema and data relationships: Introduction. Data integrity and relationships. Demo: Review of system views. Demo: Build a relationship crawling machine! Conclusion. Questions!? Where to find me.

Introduction (What is this All About?) Understanding database organization can be very useful! How do tables relate to each other? How does data within tables relate (if it exists)? How is all of this useful to us?

Data Integrity and Relationships Most databases rely on relationships to organize data. Columns in a table reference primary keys in other tables. What does lack of data integrity look like? Orphaned data!? Bad data!! Inconsistent Data!!! How do we alter data and maintain data integrity?

How Do We Delete Data We can build all foreign keys with ON DELETE… CASCADE SET NULL DO NOTHING This is 100% OK if your applications/schema are built to support this. We can play the trial & error game (?!) We can choose to not delete data (?!) We can build a tool to help us!

An Example ERD Database diagrams use foreign keys to build up relationships Many other tools can do this, too!

System Views Demo

Mapping Schema Recursively Demo

What if I Don’t Have any Foreign Keys? Mapping relationships is still important! Use that mapping to generate foreign key metadata, a data dictionary, or something similar. Use that metadata to drive reports, utilities, etc… Even unstructured/non-relational databases have the ability to generate links (aka: relationships) between documents!

Conclusion TSQL can be used to traverse database relationships. We can learn about our data. We can map schema relationships… …but we can also map out DATA relationships!!!!! Creative scripting can save immense time/effort. Enjoy!

Questions???

Contact Info & Links Ed Pollack ed7@alum.rpi.edu @EdwardPollack SQL Shack SQL Server Central SQL Saturday Albany (2017) Thank you!!!