Digital Media Technology Databases / SQL 2 Fleur Praal 17 November 2015 Leiden University. The university to discover.

Slides:



Advertisements
Similar presentations
Introduction for Clinical Database 陳勁辰2003/06/02.
Advertisements

Relational Databases Relational Model Primary Keys Relation or Relationship Foreign Keys Relationships between entities Integrity Constraints Power of.
ASP.NET Database Connectivity I. 2 © UW Business School, University of Washington 2004 Outline Database Concepts SQL ASP.NET Database Connectivity.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Database Design Overview. 2 Database DBMS File Record Field Cardinality Keys Index Pointer Referential Integrity Normalization Data Definition Language.
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Databases Chapter 11.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
DAT702.  Standard Query Language  Ability to access and manipulate databases ◦ Retrieve data ◦ Insert, delete, update records ◦ Create and set permissions.
The Relational Database Model
2.3 Organising Data for Effective Retrieval
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
ASP.NET Programming with C# and SQL Server First Edition
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
Simple Database.
Concepts and Terminology Introduction to Database.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
Class 1Intro to Databases Goals of this class Understand the architecture behind web database applications Gain a basic understanding of what relational.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
Database: SQL and MySQL
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
SQL SQL Server : Overview SQL : Overview Types of SQL Database : Creation Tables : Creation & Manipulation Data : Creation & Manipulation Data : Retrieving.
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
IST 220 Introduction to Databases Course Wrap-up.
Ch 14 QQ T F 1.A database table consists of fields and records. T F 2.Good data validation techniques can help improve data integrity. T F 3.An index is.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
Relational Databases.  In week 1 we looked at the concept of a key, the primary key is a column/attribute that uniquely identifies the rest of the data.
26 Mar 04 1 Application Software Practical 5/6 MS Access.
Database Systems Basic Data Management Concepts
Database revision.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
SQL LANGUAGE and Relational Data Model TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Database and Information Management Chapter 9 – Computers: Understanding Technology, 3 rd edition.
Lesson 2: Designing a Database and Creating Tables.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
Database Basics BCIS 3680 Enterprise Programming.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
SqlExam1Review.ppt EXAM - 1. SQL stands for -- Structured Query Language Putting a manual database on a computer ensures? Data is more current Data is.
Class 1Intro to Databases Goals of this class Understand the architecture behind web database applications Gain a basic understanding of what relational.
Session 1 Module 1: Introduction to Data Integrity
Digital Media Technology Week 12. □ Remaining SQL theory □ MySQL □ Data visualisation Today’s lecture.
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
SQL. Originally developed by IBM Standardized in 80’s by ANSI and ISO Language to access relational database and English-like non-procedural Predominant.
Courses NumNameDesc Record Field Table Credits. “PROJECT”“SELECT” Operators on Tables.
Chapter 3: Relational Databases
SQL Basics Review Reviewing what we’ve learned so far…….
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
IFS180 Intro. to Data Management Chapter 10 - Unions.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
1 SQL SERVER 2005 Express CE-105 SPRING 2007 Engr. Faisal ur Rehman.
Databases.
Indexes By Adrienne Watt.
Database Management  .
SQL 101.
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Structured Query Language
SQL Tutorial Basic SQL Commands
Presentation transcript:

Digital Media Technology Databases / SQL 2 Fleur Praal 17 November 2015 Leiden University. The university to discover.

recap from last week Leiden University. The university to discover. Databases, relational data model, data redundancy, RDBMS tables, rows, columns, records, fields IDValueExtraSurplusProfitSale Pete Cindy Pete Eve table row / record column field

recap from last week Leiden University. The university to discover. Relations: one-to-one = look-up table one-to-many many-to-many CodeCountry_name BELBelgium NLDThe Netherlands GERGermany country_bornauthor subject must be converted into one-to-many relations via junction table referential integrity: FK = PK

use of databases Leiden University. The university to discover. database design implementation data entry data retrieval: querying

use of databases Leiden University. The university to discover. database PHP HTML http SQL server client

use of databases client-side interface made for you to practice with Leiden University. The university to discover.

SQL Structured Query Language special-purpose programming language, designed for data management in RDBMS designed at IBM, early 1970s adopted as standard 1986 (ANSI/ISO) ever since, changed for/in particular systems, heavily used in trade Leiden University. The university to discover.

SQL Statements  semicolon (;) as delimiter – Queries  most often occurring statements – Clauses: specific instructions in statements FROM, WHERE, GROUP BY, HAVING, ORDER BY Predicates: based on 3VL and Boolean operators – logically consistent – Operators: to define predicate conditions =; != or <>; ; =; BETWEEN … AND; LIKE ‘…%’; IN; IS (NOT) NULL. Leiden University. The university to discover.

SQL querying 1.Which table(s) contain(s) the information that you need? 2.Are you interested in all the records in this/these table(s)? 3.Are you interested in the actual contents of the records or in statistical information about the records in the table? If so, would you like to receive one answer for the entire table, or would you like to receive different answers for different types of records? 4.Which columns do you want to see? 5.Do you want to see duplicate values or are you only interested in different values? 6.Do the records in the result set need to be sorted in any particular way? Leiden University. The university to discover.