Use of SQL – The Patricia database

Slides:



Advertisements
Similar presentations
Chapter 4 Joining Multiple Tables
Advertisements

Creating a Blank Database 1. Open up Microsoft Access 2. Click on Blank document button 3. On the right panel, Specify the location for saving your database.
Computer Science 101 Web Access to Databases SQL – Extended Form.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
CS&E 1111 AcInnerJoins Inner Joins Objectives: Creating Queries with data from Multiple Tables Joining two tables using an Inner Join Referential Data.
IE 423 – Design of Decision Support Systems Database development – Relationships and Queries.
Chapter 9 Joining Data from Multiple Tables
1 Intro to JOINs SQL INNER JOIN SQL OUTER JOIN SQL FULL JOIN SQL CROSS JOIN Intro to VIEWs Simple VIEWs Considerations about VIEWs VIEWs as filters ALTER.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
CS1100: Microsoft Access Managing Data in Relational Databases Created By Martin Schedlbauer CS11001Microsoft Access - Introduction.
CSC 240 (Blum)1 Introduction to Data Entry, Queries and Reports.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Lesson 2: Designing a Database and Creating Tables.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
A table is a set of data elements (values) that is organized using a model of vertical columns (which are identified by their name) and horizontal rows.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
QUERY CONSTRUCTION CS1100: Data, Databases, and Queries CS1100Microsoft Access1.
Fall Lab 131 CS105 Lab 13 – Logical Operator Precedence and Joining Tables Announcements: MP 3 released Friday, 11/20 Honors project due: Tuesday,
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 5: SQL I Rob Gleasure robgleasure.com.
ACCESS LESSON 1 DATABASE BASICS VOCABULARY. BACKSTAGE VIEW A menu of options and commands that allows you to access various screens to perform common.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
MySQL Tutorial. Databases A database is a container that groups together a series of tables within a single structure Each database can contain 1 or more.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Chapter 12 Introducing Databases. Objectives What a database is and which databases are typically used with ASP.NET pages What SQL is, how it looks, and.
N5 Databases Notes Information Systems Design & Development: Structures and links.
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Fundamentals of DBMS Notes-1.
Creating Oracle Business Intelligence Interactive Dashboards
Rob Gleasure robgleasure.com
INLS 623– Database Systems II– File Structures, Indexing, and Hashing
GO! with Microsoft Office 2016
Inner Joins Objectives: Creating Queries with data from Multiple Tables Joining two tables using an Inner Join Referential Data Integrity Cascade Update.
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
GO! with Microsoft Access 2016
Lecture 2 The Relational Model
Database Management  .
Databases and Information Management
5.8 Presentation.
Structured Query Language (SQL) William Klingelsmith
Creating and Modifying Queries
JOINS (Joinining multiple tables)
Types of Joins Farrokh Alemi, Ph.D.
Patricia Tips & Tricks.
FAQ Maintenance.
Rob Gleasure robgleasure.com
Databases and Information Management
INFO/CSE 100, Spring 2006 Fluency in Information Technology
M1G Introduction to Database Development
Advanced Database Concepts: Reports & Views
Spreadsheets, Modelling & Databases
Relational Database Design
Rob Gleasure robgleasure.com
Topic 12 Lesson 2 – Retrieving Data with Queries
Adv. Reports & Dashboard
PCP – IP Practice.
Basic Reports.
PCP Super User.
JOINS (Joinining multiple tables)
Marie-Eve Leclerc, Msc Student
Microsoft Access Date.
eSeries Entities By Julie Ladner
Tutorial 9 Using Action Queries and Advanced Table Relationships
Nagendra Vemulapalli Access chapters 1&2 Nagendra Vemulapalli
New Perspectives on Microsoft
Presentation transcript:

Use of SQL – The Patricia database

Try to think of the Patricia database in such a way that each table, corresponds to a window/section of Patricia. This is not the full truth always, as there sometimes are more related tables holding some of the information from the view/windows/section of Patricia that you are looking at.

Case Related Tables Primary case table: PAT_CASE Primary column: CASE_ID CASE_ID is the unique identifier for any case in Patricia You can find the Case ID of any case by using Ctrl + Left Click on the Close button on a case

Case Related Tables Case ID can be found in all tables that have information stored related to a case. Primary Case Related Tables: CASTING - The database representation of the Parties tab DIARY_LINE – Generic table which holds identifiers for which diary fields are on a case DIARY_DATE – Holds all the Diary Dates of a case DIARY_TEXT – Holds all non date Diary Fields of a case

Case Related Tables Primary Case Related tables (cont.): DESIGNATED_STATES – Contains each designation of a case PAT_DOC_LOG – Contains entries for documents on a case EVENT – Holds the term information of a case PAT_CASE_PICTURE – Device related information on a case VW_CASE_NUMBER – Holds the full Case Number and Matter ID of a case. This is the table used to find cases using Case Find.

Case Related Tables All the afore mentioned tables contain the CASE_ID column This can then be used to identify entries in any of the tables and link them to a certain case Many of these tables have a so called “foreign key” placed on the CASE_ID column. This means that there cannot exist an entry in e.g. CASTING table, that holds a value in it’s CASE_ID column that does not exist in the PAT_CASE table

Name Related Tables The main table for name records is called PAT_NAMES The main identifier is the NAME_ID column NAME_ID column holds the actual Name Number used in Patricia

Name Related Tables Primary Name Related tables: PAT_NAMES_ENTITY – Holds the “actual” name information of a name record PAT_NAMES_ADDRESS – Holds the address information of a name record NAME_ADD_FIELDS – Holds the Extended Name Information details PAT_NAMES_REF – Holds connection entries of a name record

Maintenance Related Tables Many Case/Name related tables have a corresponding Maintenance table. This is where all the Maintenance configuration are stored.

Maintenance Related Tables Important Maintenance Tables: PAT_CONFIGURATION – This contains all the Basic Configuration value setup PAT_CONF_COMPUTER/GROUP/PERSON_VALUES – These three different tables holds any Basic Configuration setting done on either Computer, Group or Person DIARY_FIELD – All basic information regarding created Diary Fields are stored in this table

Maintenance Related Tables Important Maintenance tables (Cont.): CASE_ROLE_TYPE – The Name Type setup is stored here. STATE_NAME – The Country Label setup is stored here PERSON – This table contains all the Patricia Logins EVENT_SCHEME – General Term setup details are stored here

Maintenance Related Tables Important Maintenance tables (Cont.): TEAM – Team Setup ROLES – Available Roles

Relations Since the Patricia database is built on a so called Relational Database, we are not storing everything in a single table, but instead have split up information across multiple tables and are using relations to identify the connections between these two.

Relations Consider that we want to find all terms of a case, where the term has a certain category and where a certain name number is the applicant. To achieve this, we would need to look into multiple tables in order to find a matching criteria.

Relations If we have a look at the below query.

Relations Let us break the query down row by row: All SQL Queries start with the keyword SELECT and this defines the information that we want to get. This line means “Find us the value of column case_number and the value of column event_scheme_id” Which in Patricia-speak means the actual Case Number and the Term Number.

Relations The next row starts with the keyword FROM. This section defines the tables that we want to use in our query. Whether it is to get information from, or to be used for filtering.

Relations The next section is five rows. They all start with keyword combination of INNER JOIN. This means that we are joining in other tables, based of a common value existing in any already specified table

Relations Let us go through the joins line by line Here we are joining in the table called EVENT based off of the case_id column, existing in both table VW_CASE_NUMBER as well as EVENT. So only records where these two values matches will be returned

Relations Here we are joining in the EVENT_SCHEME table, which is the table containing the maintenance setup for terms. And we are joining this on the EVENT_SCHEME_ID, i.e. Term Number, column existing in both tables

Relations Here we are now joining in the EVENT_CATEGORY table. This table holds the maintenance setup for available Event Categories, that we then can apply on to terms. And here we are then joining this together on the EVENT_CATEGORY_ID column existing in both tables.

Relations Now we are joining in the CASTING table, which holds parties information from a case. This is then joined in on the CASE_ID column existing in both tables.

Relations Here we are joining in the table CASE_ROLE_TYPE, which is the maintenance table containing name type setup. This is then done by matching the ROLE_TYPE_ID column from the CASTING table on the case.

Relations The next line starts with the keyword WHERE, and this defines the section where we will be starting to filter out items. As you might noticed, we joined in far more tables than we were fetching information from, this is because it is necessary if you want to filter on them as well. Here we are now saying, only find me information where the Role Type label is “Applicant”

Relations The next line starts with the keyword AND. This can be used after you started the so called WHERE clause and allows you to add more things to filter on. Here we are saying that we only want information where the Name Number from the parties tab is 50042

Relations And the final line, says that we only want rows where the Term Category Label is “DEADLINE”.

Relations So this is how relations between the different tables work. This was just a short example of relations in the Patricia database, there are many many more.