Database Systems. S. Adams. Dilbert. Available: Hans-Petter Halvorsen
|
|
- Helen Cox
- 6 years ago
- Views:
Transcription
1 Database Systems S. Adams. Dilbert. Available: Hans-Petter Halvorsen
2 Old fashion Database (Data-storage) Systems Not too long ago, this was the only data-storage device most companies needed. Those days are over.
3 Testing Implementation Deployment Maintenance The Software Development Lifecycle Planning Requirements Analysis Design
4 Database Systems A Database is a structured way to store lots of information. The information is stored in different tables. - Everything today is stored in databases! Examples: Bank/Account systems Information in Web pages such as Facebook, Wikipedia, YouTube, etc. Fronter, TimeEdit, etc. lots of other examples!
5 Example: Database ER Diagram 5
6 Database Management Systems (DBMS) Microsoft SQL Server Enterprise, Developer versions, etc. (Professional use) Express version is free of charge Oracle MySQL (owned by Oracle, but previously owned by Sun Microsystems) - MySQL can be used free of charge (open source license), Web sites that use MySQL: YouTube, Wikipedia, Facebook Microsoft Access IBM DB2 Sybase MariaDB MongoDB etc.
7 Database Types Relation Database/SQL Databases Microsft SQL Server Oracle MySQL MariaDB etc. NoSQL Databases MongoDB etc.
8 SQL vs. NoSQL Database Types 8
9 Database Modelling Hans-Petter Halvorsen, M.Sc.
10 Database Modelling The logical structure of the database ER Diagram (Entity Relationship)
11 Database Design ER Diagram ER Diagram (Entity-Relationship Diagram) Used for Design and Modeling of Databases. Specify Tables and relationship between them (Primary Keys and Foreign Keys) Example: Table Name Table Name Primary Key Primary Key Foreign Key Column Names Relational Database. In a relational database all the tables have one or more relation with each other using Primary Keys (PK) and Foreign Keys (FK). Note! You can only have one PK in a table, but you may have several FK s.
12 Database Design Tools Visio PowerDesigner CA ERwin CA ERwin Data Modeler Community Edition Community Edition is Free, 25 objects limit Support for Oracle, SQL Server, MySQL, ODBC, Sybase Toad Data Modeler A Simple designer is also included with SQL Server (physical model, not logical model)
13 Database - Best Practice Tables: Use upper case and singular form in table names not plural, e.g., STUDENT (not students) Columns: Use Pascal notation, e.g., StudentId Primary Key: If the table name is COURSE, name the Primary Key column CourseId, etc. Always use Integer and Identity(1,1) for Primary Keys. Use UNIQUE constraint for other columns that needs to be unique, e.g. RoomNumber Specify Required Columns (NOT NULL) i.e., which columns that need to have data or not Standardize on few/these Data Types: int, float, varchar(x), datetime, bit Use English for table and column names Avoid abbreviations! (Use RoomNumber not RoomNo, RoomNr,...)
14 Database Design Microsoft Visio We will use Visio to Design our Database 1 2 Select the proper Template 3 14
15 Table Name ER Diagram Example - Visio Primary Key (PK) Foreign Key (FK)
16
17 ER Diagram Example using built-in Designer in Microsoft SQL Server Table Name PK Table Name PK FK PK-FK Relationship Table Name PK FK PK FK FK Table Name Table Name PK FK Table Name PK FK PK PK-FK Relationships FK FK Table Name Table Name PK FK FK PK Primary Key, FK Foreign Key 17
18 Hans-Petter Halvorsen, M.Sc.
19 SQL Server Main parts: SQL Server Engine + Management Studio SQL Server Standard, Developer, Web, Enterprise, Datacenter,... Free Alternative: SQL Server Express SQL Azure Database Cloud-based version
20 Microsoft SQL Server SQL Server consists of a Database Engine and a Management Studio. The Database Engine has no graphical interface - it is just a service running in the background of your computer (preferable on the server). The Management Studio is graphical tool for configuring and viewing the information in the database. It can be installed on the server or on the client (or both).
21 Microsoft SQL Server Your SQL Server Your Database 4 Write your Query here Your Tables 5 The result from your Query
22 Microsoft SQL Server Create a New Database 2 1 Name you database, e.g., WEATHER_SYSTEM
23 Microsoft SQL Server Tips and Tricks Do you get an error when trying to change your tables? Make sure to uncheck this option!
24 SQL Structured Query Language Hans-Petter Halvorsen, M.Sc.
25 SQL Structured Query language A Database Computer Language designed for Managing Data in Relational Database Management Systems (RDBMS) Query Examples: insert into STUDENT (Name, Number, SchoolId) values ('John Smith', '100005', 1) select SchoolId, Name from SCHOOL select * from SCHOOL where SchoolId > 100 update STUDENT set Name='John Wayne' where StudentId=2 delete from STUDENT where SchoolId=3 We have 4 different Query Types (CRUD): INSERT, SELECT, UPDATE and DELETE CRUD Create (Insert), Read (Select), Update and Delete
26 Create Tables using the Designer Tools in SQL Server Even if you can do everything using the SQL language, it is sometimes easier to do something in the designer tools in the Management Studio in SQL Server. Instead of creating a script you may as well easily use the designer for creating tables, constraints, inserting data, etc. 1 2 Select New Table : Next, the table designer pops up where you can add columns, data types, etc. In this designer we may also specify constraints, such as primary keys, unique, foreign keys, etc.
27 Create Tables with the Database Diagram 1 2 You may select existing tables or create new Tables Create New Table Enter Columns, select Data Types, Primary Keys, etc.
28 if not exists (select * from dbo.sysobjects where id = object_id(n'[school]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) CREATE TABLE [SCHOOL] ( [SchoolId] [int] IDENTITY(1, 1) NOT NULL PRIMARY KEY, [SchoolName] [varchar](50) NOT NULL UNIQUE, [Description] [varchar](1000) NULL, [Address] [varchar](50) NULL, [Phone] [varchar](50) NULL, [PostCode] [varchar](50) NULL, [PostAddress] [varchar](50) NULL, ) GO Create Tables using SQL if not exists (select * from dbo.sysobjects where id = object_id(n'[class]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) CREATE TABLE [CLASS] ( [ClassId] [int] IDENTITY(1, 1) NOT NULL PRIMARY KEY, [SchoolId] [int] NOT NULL FOREIGN KEY REFERENCES [SCHOOL] ([SchoolId]), [ClassName] [varchar](50) NOT NULL, [Description] [varchar](1000) NULL, ) GO
29 Get Data from multiple tables in a single Example: Query using Joins select SchoolName, CourseName from You link Primary Keys and Foreign Keys together SCHOOL inner join COURSE on SCHOOL.SchoolId = COURSE.SchoolId
30 Creating Views using the Editor 3 1 Graphical Interface where you can select columns you need 2 Add necessary tables 4 Save the View
31 Create View: IF EXISTS (SELECT name FROM sysobjects WHERE name = 'CourseData' AND type = 'V') DROP VIEW CourseData GO Creating Views using SQL A View is a virtual table that can contain data from multiple tables The Name of the View CREATE VIEW CourseData AS SELECT SCHOOL.SchoolId, SCHOOL.SchoolName, COURSE.CourseId, COURSE.CourseName, COURSE.Description FROM SCHOOL INNER JOIN COURSE ON SCHOOL.SchoolId = COURSE.SchoolId GO Using the View: select * from CourseData Inside the View you join the different tables together using the JOIN operator You can Use the View as an ordinary table in Queries : 31
32 Create Stored Procedure: IF EXISTS (SELECT name FROM sysobjects WHERE name = 'StudentGrade' AND type = 'P') DROP PROCEDURE StudentGrade OG CREATE PROCEDURE varchar(1) AS Stored Procedure A Stored Procedure is like Method in C# - it is a piece of code with SQL commands that do a specific task and you reuse it Procedure Name Input Arguments int select StudentId from STUDENT where StudentName Internal/Local Variables Note! Each variable starts select CourseId from COURSE where CourseName insert into GRADE (StudentId, CourseId, Grade) GO Using the Stored Procedure: execute StudentGrade 'John Wayne', 'SCE2006', 'B' SQL Code (the body of the Stored Procedure)
33 IF EXISTS (SELECT name FROM sysobjects WHERE name = 'CalcAvgGrade' AND type = 'TR') DROP TRIGGER CalgAvgGrade GO CREATE TRIGGER CalcAvgGrade ON GRADE FOR UPDATE, INSERT, DELETE AS float = StudentId from INSERTED Trigger A Trigger is executed when you insert, update or delete data in a Table specified in the Trigger. Create the Trigger: = AVG(Grade) from GRADE where StudentId update STUDENT set TotalGrade where StudentId GO Name of the Trigger Specify which Table the Trigger shall work on Specify what kind of operations the Trigger shall act on Internal/Local Variables Inside the Trigger you can use ordinary SQL statements, create variables, etc. SQL Code (The body of the Trigger) Note! INSERTED is a temporarily table containing the latest inserted data, and it is very handy to use inside a trigger
34 Summary DBMS Database Management System SQL Structured Query Language. A Database Computer Language designed for Managing Data in Relational Database Management Systems (RDBMS) ER Diagram Entity Relationship. Used for Design and Modeling of Databases. Specify Tables and relationship between them (Primary Keys and Foreign Keys)
35 References NTNU. (2013). TDT4140 Systemutvikling. Available: UiO. (2013). INF Systemutvikling. Available: O. Widder. (2013). geek&poke. Available: B. Lund. (2013). Lunch. Available: S. Adams. Dilbert. Available:
36 Hans-Petter Halvorsen, M.Sc. University College of Southeast Norway Blog:
Database. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.
Database Quiz with Explainations Hans-Petter Halvorsen, M.Sc. Questions 1. What is a Database? 2. Give Examples of Systems that use a Database 3. What is DBMS? 4. Give Examples of DBMS systems? 5. We have
More informationSQL Server and SQL Structured Query Language
SQL Server and SQL Structured Query Language Step by step Exercises Hans-Petter Halvorsen Database Systems Hans-Petter Halvorsen, M.Sc. Database Systems A Database is a structured way to store lots of
More informationDatabase Views & Stored Procedures. Hans-Petter Halvorsen, M.Sc.
Database Views & Stored Procedures Hans-Petter Halvorsen, M.Sc. SQL Server Hans-Petter Halvorsen, M.Sc. Microsoft SQL Server 3 1 2 Your SQL Server Your Tables Your Database 4 Write your Query here 5 The
More informationIntroduction to ERwin
Introduction to ERwin Database Design & Modelling Hans-Petter Halvorsen, M.Sc. Software The following Editions can be downloaded for Free on Internet: CA ERwin Data Modeler Community Edition SQL Server
More informationDatabase Overview. Introduction to Database Systems, ERwin, SQL Server, SQL, etc. Hans-Petter Halvorsen, M.Sc.
Database Overview Introduction to Database Systems, ERwin, SQL Server, SQL, etc. Hans-Petter Halvorsen, M.Sc. Contents Database Modelling/Design using ERwin Generate SQL Table Script using ERwin Generate
More informationDatabase Lab. Hans-Petter Halvorsen
2017.03.24 Database Lab http://home.hit.no/~hansha/?lab=database Hans-Petter Halvorsen Lab Overview Database Design & Modelling SQL Server Management Studio Create Tables Database Management Microsoft
More informationStructured Query Language
University College of Southeast Norway Structured Query Language Hans-Petter Halvorsen, 2016.01.08 The Tutorial is available Online: http://home.hit.no/~hansha/?tutorial=sql http://home.hit.no/~hansha
More informationSoftware Platforms. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.
Software Platforms Quiz with Explainations Hans-Petter Halvorsen, M.Sc. Questions 1. List 3 different software platforms with some examples for each 2. List 5 different Web Browsers and the name of the
More informationhttps://www.halvorsen.blog Industrial IT Laboratory Work https://www.halvorsen.blog/documents/teaching/courses/industrialit Hans-Petter Halvorsen
https://www.halvorsen.blog Industrial IT Laboratory Work https://www.halvorsen.blog/documents/teaching/courses/industrialit Hans-Petter Halvorsen OPC Laboratory Work The Industrial IT course contains different
More informationSoftware Architecture
O. Widder. (2013). geek&poke. Available: http://geek-and-poke.com Software Architecture Hans-Petter Halvorsen Clients Windows Server 2008/2012 Windows 7/8 Wi-Fi Server LAN Ethernet OPC Server Router Web
More informationUniversity College of Southeast Norway. Introduction to Database. Systems. Hans-Petter Halvorsen,
University College of Southeast Norway Introduction to Database Hans-Petter Halvorsen, 2016.11.01 Systems http://home.hit.no/~hansha Preface This document explains the basic concepts of a database system
More informationTeam Foundation Server Visual Studio Team Services. Hans-Petter Halvorsen, M.Sc.
Team Foundation Server Visual Studio Team Services Hans-Petter Halvorsen, M.Sc. Team Foundation Server (TFS) is an Application Lifecycle Management (ALM) system The Software Development Lifecycle (SDLC)
More informationUML. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.
UML Quiz with Explainations Hans-Petter Halvorsen, M.Sc. Questions 1. What is UML? 2. What is an ER diagram? 3. Give example of some types of UML diagrams (in total we have 14 different types) 4. Give
More informationUML. Unified Modeling Language. Hans-Petter Halvorsen, M.Sc. O. Widder. (2013). geek&poke. Available:
O. Widder. (2013). geek&poke. Available: http://geek-and-poke.com UML Unified Modeling Language Hans-Petter Halvorsen, M.Sc. Unified Modeling Language (UML) Examples Class Diagram Use Case Diagram 2 Deployment
More informationDatabases CSCI 201 Principles of Software Development
Databases CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline Databases SQL Try It! USC CSCI 201L Databases Database systems store data and provide a means
More informationUsing SQL Server in C#
University College of Southeast Norway Using SQL Server in C# Hans-Petter Halvorsen, 2016.11.01 with Examples http://home.hit.no/~hansha Table of Contents 1. Introduction...
More informationSource Code Control & Bug Tracking
http://home.hit.no/~hansha/?page=software_development O. Widder. (2013). geek&poke. Available: http://geek-and-poke.com Source Code Control & Bug Tracking Hans-Petter Halvorsen O. Widder. (2013). geek&poke.
More informationTeam Assignment. Final Software Delivery. IA4412 Software Engineering
IA4412 Software Engineering Team Assignment Final Software Delivery B. Lund. Lunch. Available: http://www.lunchstriper.no, http://www.dagbladet.no/tegneserie/lunch/ Hans-Petter Halvorsen, M.Sc. Level of
More informationUniversity College of Southeast Norway ASP.NET. Web Programming. Hans-Petter Halvorsen,
University College of Southeast Norway Hans-Petter Halvorsen, 2016.11.01 ASP.NET Web Programming http://home.hit.no/~hansha Table of Contents 1 Introduction... 4 1.1 Visual Studio... 4 1.2 C#... 5 1.3.NET
More informationProgramming. Languages & Frameworks. Hans-Petter Halvorsen, M.Sc. O. Widder. (2013). geek&poke. Available:
Programming O. Widder. (2013). geek&poke. Available: http://geek-and-poke.com Languages & Frameworks Hans-Petter Halvorsen, M.Sc. Implementation Planning Maintenance Testing Implementation The Software
More informationVisual Studio Team Services
Visual Studio Team Services Getting Started Hans-Petter Halvorsen, M.Sc. Visual Studio Team Services Visual Studio Team Services is a platform taking care of all aspects of the process of developing software
More informationCreate a Virtual Test Environment
Create a Virtual Test Environment Step by Step Exercises Hans-Petter Halvorsen, M.Sc. Why Do We Need a Test Environment? Why cant we just use our own PC? Why Test Environment? It works on my PC says the
More informationThe DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.
Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting
More informationData Modeling Diagram Open Source Tool Oracle
Data Modeling Diagram Open Source Tool Oracle Data Model Diagram Visualizer. in the original source tool. Figure 3 of SPARC International, Inc. UNIX is a registered trademark licensed through X/Open. Navicat
More informationCreating the Data Layer
Creating the Data Layer When interacting with any system it is always useful if it remembers all the settings and changes between visits. For example, Facebook has the details of your login and any conversations
More informationFrom business need to implementation Design the right information solution
From business need to implementation Design the right information solution Davor Gornik (dgornik@us.ibm.com) Product Manager Agenda Relational design Integration design Summary Relational design Data modeling
More informationA practical introduction to database design
A practical introduction to database design Dr. Chris Tomlinson Bioinformatics Data Science Group, Room 126, Sir Alexander Fleming Building chris.tomlinson@imperial.ac.uk Computer Skills Classes 17/01/19
More informationGet Table Schema In Sql Server 2008 To Add Column If Not Exists >>>CLICK HERE<<<
Get Table Schema In Sql Server 2008 To Add Column If Not Exists IF NOT EXISTS ( SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'(dbo). Also try catch is easily possible to use in sql serverand
More informationWorking with Databases and Java
Working with Databases and Java Pedro Contreras Department of Computer Science Royal Holloway, University of London January 30, 2008 Outline Introduction to relational databases Introduction to Structured
More informationSQL language. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c)
SQL language Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) 2011-2016 SQL - Structured Query Language SQL is a computer language for communicating with DBSM Nonprocedural (declarative) language What
More informationSimulation in LabVIEW. Hans-Petter Halvorsen, M.Sc.
Simulation in LabVIEW Hans-Petter Halvorsen, M.Sc. Software LabVIEW LabVIEW Control Design and Simulation Module This module is used for creating Control and Simulation applications with LabVIEW. Here
More informationManual Trigger Sql Server 2008 Insert Multiple Rows At Once
Manual Trigger Sql Server 2008 Insert Multiple Rows At Once Adding SQL Trigger to update field on INSERT (multiple rows) However, if there are multiple records inserted (as in the user creates several
More informationSQL CSCI 201 Principles of Software Development
SQL CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline SELECT Statements Try It USC CSCI 201L SELECT Statements SELECT statements are probably the most commonly
More informationSCADA Lab. Supervisory Control and Data Acquisition. Hans-Petter Halvorsen
2017.04.18 SCADA Lab Supervisory Control and Data Acquisition http://home.hit.no/~hansha/?lab=scada Hans-Petter Halvorsen Lab Overview In this Lab we will create a SCADA System from scratch Air Heater
More informationMySQL. A practical introduction to database design
MySQL A practical introduction to database design Dr. Chris Tomlinson Bioinformatics Data Science Group, Room 126, Sir Alexander Fleming Building chris.tomlinson@imperial.ac.uk Database Classes 24/09/18
More informationUniversity College of Southeast Norway. Database Communication. in LabVIEW. Hans-Petter Halvorsen,
University College of Southeast Norway Database Communication Hans-Petter Halvorsen, 2016.10.31 in LabVIEW http://home.hit.no/~hansha Preface This document explains the basic concepts of a database system
More informationHow To Insert Data In Two Tables At A Time In Sql Server 2008
How To Insert Data In Two Tables At A Time In Sql Server 2008 Below is a similar example to my first INSERT statement, but this time I have left off the column list: With the introduction of SQL Server
More informationConsistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one
Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we
More informationCOMP 430 Intro. to Database Systems. Encapsulating SQL code
COMP 430 Intro. to Database Systems Encapsulating SQL code Want to bundle SQL into code blocks Like in every other language Encapsulation Abstraction Code reuse Maintenance DB- or application-level? DB:
More informationNetworks and Web for Health Informatics (HINF 6220)
Networks and Web for Health Informatics (HINF 6220) Tutorial #1 Raheleh Makki Email: niri@cs.dal.ca Tutorial Class Timings Tuesday & Thursday 4:05 5:25 PM Course Outline Database Web Programming SQL PHP
More informationThe appendix contains information about the Classic Models database. Place your answers on the examination paper and any additional paper used.
Name: Student Number: Instructions: Do all 9 questions. There is a total of 87 marks. The appendix contains information about the Classic Models database. Place your answers on the examination paper and
More informationDatalogging and Monitoring
Datalogging and Monitoring with Step by Step Examples Hans-Petter Halvorsen http://www.halvorsen.blog Content Different Apps for Data Logging and Data Monitoring will be presented Here you find lots of
More informationWeek Assignment Source Code Control (SCC) & Bug Tracking Systems Hans-Petter Halvorsen
https://www.halvorsen.blog Week Assignment Source Code Control (SCC) & Bug Tracking Systems Hans-Petter Halvorsen 1. SCC Systems Overview Everybody should collaborate creating a document giving an overview
More informationCS143: Relational Model
CS143: Relational Model Book Chapters (4th) Chapters 1.3-5, 3.1, 4.11 (5th) Chapters 1.3-7, 2.1, 3.1-2, 4.1 (6th) Chapters 1.3-6, 2.105, 3.1-2, 4.5 Things to Learn Data model Relational model Database
More informationWhat 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 informationPhysical Design of Relational Databases
Physical Design of Relational Databases Chapter 8 Class 06: Physical Design of Relational Databases 1 Physical Database Design After completion of logical database design, the next phase is the design
More informationA hypothetical M:M student schedule example
A hypothetical : student schedule example We are interested in creating a relationship between two tables: Student and Class Section. We want to be able to be able to have students register for different
More informationGuides for Installing MS SQL Server and Creating Your First Database. Please see more guidelines on installing procedure on the class webpage
Guides for Installing MS SQL Server and Creating Your First Database Installing process Please see more guidelines on installing procedure on the class webpage 1. Make sure that you install a server with
More informationSql Server 2005 Create Script To Copy Database Schema And All The Objects
Sql Server 2005 Create Script To Copy Database Schema And All The Objects watch the online video course sql server triggers stored procedures and functions sql server 2005 create script to copy database
More informationDb Schema Vs Database Sql Server 2005 Script
Db Schema Vs Database Sql Server 2005 Script SQL server database project creation using Visual Studio 2013, Author: SQL-server-2005 Also I am selecting the output types as create scripts by checking the
More informationICTDBS403 Create basic databases
ICTDBS403 Create basic databases Topic 2 Learner Guide Copyright, 2016 by North Coast Date last saved: 20 January 2016 by Amanda Walker Version: 1.0 # of Pages = 31 John Chapman and Amanda Walker Content
More informationWeek Assignment. Source Code Control (SCC) & Bug Tracking Systems. Hans-Petter Halvorsen
2017.03.06 Week Assignment Source Code Control (SCC) & Bug Tracking Systems B. Lund. Lunch. Available: http://www.lunchstriper.no, http://www.dagbladet.no/tegneserie/lunch/ Hans-Petter Halvorsen Note!
More informationReferential integrity
Referential integrity Another function of the DBMS is to ensure referential integrity. This refers to the concept that a foreign key in a relation must have a corresponding entry in the table to which
More informationToday Learning outcomes LO2
2015 2016 Phil Smith Today Learning outcomes LO2 On successful completion of this unit you will: 1. Be able to design and implement relational database systems. 2. Requirements. 3. User Interface. I am
More informationCreate Installation Packages in Visual Studio
Create Installation Packages in Visual Studio Step by step Exercises Hans-Petter Halvorsen, M.Sc. Maintenance Developers Developers & Testers Customers Development Testing Production Deployment & Installation
More informationSession 6: Relational Databases
INFM 603: Information Technology and Organizational Context Session 6: Relational Databases Jimmy Lin The ischool University of Maryland Thursday, October 16, 2014 Databases Yesterday Databases Today What
More informationLecture 8. Database vs. Files SQL (I) Introduction to SQL database management systems (DBMS)
Lecture 8 SQL (I) Money are kept by boxes buried in the ground in the backyard. Money are kept in the bank 1 Source: system analysis and design methods, by Jeffrey L Whitten et al., 2 McGraw-Hill/Irwin,
More informationCSC 355 Database Systems
CSC 355 Database Systems Marcus Schaefer Databases? Database 1. DB models aspects of the real world (miniworld, universe of discourse) 2. Collection of data logically coherent Meaningful Information 3.
More informationIntroduction to MySQL /MariaDB and SQL Basics. Read Chapter 3!
Introduction to MySQL /MariaDB and SQL Basics Read Chapter 3! http://dev.mysql.com/doc/refman/ https://mariadb.com/kb/en/the-mariadb-library/documentation/ MySQL / MariaDB 1 College Database E-R Diagram
More informationThis lecture. Basic Syntax
This lecture Databases - Database Definition This lecture covers the process of implementing an ER diagram as an actual relational database. This involves converting the various entity sets and relationship
More informationDatabase Management Systems,
Database Management Systems Database Design (2) 1 Topics Data Base Design Logical Design (Review) Physical Design Entity Relationship (ER) Model to Relational Model Entity Relationship Attributes Normalization
More informationUnit Testing. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.
Unit Testing Quiz with Explainations Hans-Petter Halvorsen, M.Sc. Questions 1. What is Unit Testing? 2. List some Unit Test Framework 3. Who is creating the Unit Tests? 4. What kind of Requirements does
More informationUniversity College of Southeast Norway. Web Services. with Examples. Hans-Petter Halvorsen,
University College of Southeast Norway Web Services Hans-Petter Halvorsen, 2016.11.01 with Examples http://home.hit.no/~hansha Table of Contents 1. Introduction... 4 1.1. The Problem... 4 1.2. The Solution...
More informationCSC 453 Database Technologies. Tanu Malik DePaul University
CSC 453 Database Technologies Tanu Malik DePaul University A Data Model A notation for describing data or information. Consists of mostly 3 parts: Structure of the data Data structures and relationships
More informationCGS 3066: Spring 2017 SQL Reference
CGS 3066: Spring 2017 SQL Reference Can also be used as a study guide. Only covers topics discussed in class. This is by no means a complete guide to SQL. Database accounts are being set up for all students
More informationA Flat file database. Problems with a flat file database (data redundancy)
Data capture Before you can create a database, you need to collect data. This is known as data capture. One of the most common ways is to use and optical mark reader (OMR). An OMR sensor is used for marking
More informationCS317 File and Database Systems
CS317 File and Database Systems Lecture 3 Relational Model & Languages Part-1 September 7, 2018 Sam Siewert More Embedded Systems Summer - Analog, Digital, Firmware, Software Reasons to Consider Catch
More informationPart I: Introduction. Outline. Introduction to Databases & SQL. Motivating Example Flat Files. Relational Databases. Problems with Flat Files
Outline Introduction to Databases & SQL Dr. Christopher M. Bourke cbourke@cse.unl.edu 1. Introduction 2. Creating Tables 3. Manipulating Data 4. Querying Data 5. Extended Demonstration 6. Designing Databases
More informationInformatics 1: Data & Analysis
Informatics 1: Data & Analysis Lecture 3: The Relational Model Ian Stark School of Informatics The University of Edinburgh Tuesday 24 January 2017 Semester 2 Week 2 https://blog.inf.ed.ac.uk/da17 Lecture
More informationThe Relational Model. Relational Data Model Relational Query Language (DDL + DML) Integrity Constraints (IC)
The Relational Model Relational Data Model Relational Query Language (DDL + DML) Integrity Constraints (IC) Why Study the Relational Model? Most widely used model in Commercial DBMSs: Vendors: IBM, Microsoft,
More informationCreate a simple database with MySQL
Create a simple database with MySQL 1.Connect the MySQL server through MySQL Workbench You can achieve many database operations by typing the SQL langue into the Query panel, such as creating a database,
More informationInformatics 1: Data & Analysis
Informatics 1: Data & Analysis Lecture 7: SQL Ian Stark School of Informatics The University of Edinburgh Tuesday 4 February 2014 Semester 2 Week 4 http://www.inf.ed.ac.uk/teaching/courses/inf1/da Careers
More informationInstructor: Craig Duckett. Lecture 02: Thursday, March 29 th, 2018 SQL Basics and SELECT, FROM, WHERE
Instructor: Craig Duckett Lecture 02: Thursday, March 29 th, 2018 SQL Basics and SELECT, FROM, WHERE 1 Assignment 1 is due LECTURE 5, Tuesday, April 10 th, 2018 in StudentTracker by MIDNIGHT MID-TERM EXAM
More informationDesign Sql Server Schema Comparison Tool In Visual Studio 2012
Design Sql Server Schema Comparison Tool In Visual Studio 2012 These SSDT tools include data and schema comparison, as well as support for SSDT Visual Studio 2012 There is a standalone install experience
More informationDatabase Username And Current User Schema Do Not Match Sql Server
Database Username And Current User Schema Do Not Match Sql Server The utility connects to the MS SQL Server database and then establishes the schema pull Dependencies: If you do not set the user name that
More informationInformatics 1: Data & Analysis
Informatics 1: Data & Analysis Lecture 7: SQL Ian Stark School of Informatics The University of Edinburgh Tuesday 3 February 2015 Semester 2 Week 4 http://www.inf.ed.ac.uk/teaching/courses/inf1/da Careers
More informationMySQL Views & Comparing SQL to NoSQL
CMSC 461, Database Management Systems Fall 2014 MySQL Views & Comparing SQL to NoSQL These slides are based on Database System Concepts book and slides, 6 th edition, and the 2009/2012 CMSC 461 slides
More informationIn This Lecture. SQL Data Definition SQL SQL. Non-Procedural Programming. Notes. Database Systems Lecture 5 Natasha Alechina
This Lecture Database Systems Lecture 5 Natasha Alechina The language, the relational model, and E/R diagrams CREATE TABLE Columns Primary Keys Foreign Keys For more information Connolly and Begg chapter
More informationWeb Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen
https://www.halvorsen.blog Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen History of the Web Internet (1960s) World Wide Web - WWW (1991) First Web Browser - Netscape,
More informationWhere is Database Management System (DBMS) being Used?
The main objective of DBMS (Database Management System) is to provide a structured way to store and retrieve information that is both convenient and efficient. By data, we mean known facts that can be
More informationSql Server 2008 Database Object Schemas Best Practice
Sql Server 2008 Database Object Schemas Best Practice Monitor and Enforce Best Practices by Using Policy-Based Management When SQL Server policy administrators use Policy-Based Management, they use SQL
More informationOracle Login Max Length Table Name 11g Column Varchar2
Oracle Login Max Length Table Name 11g Column Varchar2 Get max(length(column)) for all columns in an Oracle table tables you are looking at BEGIN -- loop through column names in all_tab_columns for a given
More informationhttps://www.halvorsen.blog Web Services Hans-Petter Halvorsen
https://www.halvorsen.blog Web Services Hans-Petter Halvorsen Problem How to Share Data between Devices in a Network? Server(s) Firewalls Security Clients Local Network/Internet Database Routers/Switches,
More informationDatabase Systems. Bence Molnár
Database Systems Bence Molnár SQL History Beginning of 70s IBM SEQUEL (Structured English QUery Language) Structured/Standard Query Language In 1986 ANSI, 1987 ISO standard SQL2 ('92), SQL3 ('99),... Development
More informationNew Features Summary PowerDesigner 15.2
New Features Summary PowerDesigner 15.2 Windows DOCUMENT ID: DC10077-01-1520-01 LAST REVISED: February 2010 Copyright 2010 by Sybase, Inc. All rights reserved. This publication pertains to Sybase software
More informationCMPT 354: Database System I. Lecture 3. SQL Basics
CMPT 354: Database System I Lecture 3. SQL Basics 1 Announcements! About Piazza 97 enrolled (as of today) Posts are anonymous to classmates You should have started doing A1 Please come to office hours
More informationChapter 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 informationAlter Schema Dbo Transfer Sql Server 2000
Alter Schema Dbo Transfer Sql Server 2000 All of the SQL Delta Duo Compare tools compare schema and data of two databases. As the name Supports SQL Server 2000 through to 2014 and Azure. I am using Sql
More informationTool Create Database Diagram Sql Server 2008 Exporting
Tool Create Database Diagram Sql Server 2008 Exporting You can open database diagrams to view or edit the diagram's structure. Export (0) Print Create a New Database Diagram (Visual Database Tools) features
More informationCSE 344 AUGUST 1 ST ENTITIES
CSE 344 AUGUST 1 ST ENTITIES EXAMS Will hand back after class Quartiles 1 0 67 2 68 74 3 74 82 4 82 100 (no one actually got 0 or 100) ADMINISTRIVIA HW6 due Wednesday Spark SQL interface much easier to
More informationIntroduction to Databases, Fall 2005 IT University of Copenhagen. Lecture 2: Relations and SQL. September 5, Lecturer: Rasmus Pagh
Introduction to Databases, Fall 2005 IT University of Copenhagen Lecture 2: Relations and SQL September 5, 2005 Lecturer: Rasmus Pagh Today s lecture What, exactly, is the relational data model? What are
More informationCS127 Homework #3. Due: October 11th, :59 P.M. Consider the following set of functional dependencies, F, for the schema R(A, B, C, D, E)
CS127 Homework #3 Warmup #1 Consider the following set of functional dependencies, F, for the schema R(A, B, C, D, E) 1. Find the candidate keys for the schema R. AB, C, D, and EA 2. Compute the closure,
More informationRelational Database Systems Part 01. Karine Reis Ferreira
Relational Database Systems Part 01 Karine Reis Ferreira karine@dpi.inpe.br Aula da disciplina Computação Aplicada I (CAP 241) 2016 Database System Database: is a collection of related data. represents
More informationThe Relational Model. Chapter 3
The Relational Model Chapter 3 Why Study the Relational Model? Most widely used model. Systems: IBM DB2, Informix, Microsoft (Access and SQL Server), Oracle, Sybase, MySQL, etc. Legacy systems in older
More informationSystem Pages (Setup Admins Only)
System Pages (Setup Admins Only) 1 Primary System Pages 2 More on Page Views & Sub Page Views 3 4 System Lookup Pages 5 6 7 Distinguishing Tables, Pages, Filtered Pages, & Page Views 8 9 Reasons to Create
More informationHow To Export Database Diagram Sql Server 2008 To Excel
How To Export Database Diagram Sql Server 2008 To Excel Programming in Excel and MS Access VBA, Crystal Reports, C#, ASP. This article describes using the Database Model Diagram template in Visio 2010.
More informationSql Server Schema Update Join Multiple Tables In One Query
Sql Server Schema Update Join Multiple Tables In One Query How to overcome the query poor performance when joining multiple times? How would you do the query to retrieve 10 different fields for one project
More informationMATLAB Examples. Simulink. Hans-Petter Halvorsen, M.Sc.
MATLAB Examples Simulink Hans-Petter Halvorsen, M.Sc. What is Simulink? Simulink is an add-on to MATLAB. You need to have MATLAB in order to use Simulink Simulink is used for Simulation of dynamic models
More informationDATABASES SQL INFOTEK SOLUTIONS TEAM
DATABASES SQL INFOTEK SOLUTIONS TEAM TRAINING@INFOTEK-SOLUTIONS.COM Databases 1. Introduction in databases 2. Relational databases (SQL databases) 3. Database management system (DBMS) 4. Database design
More informationThe Relational Model. Why Study the Relational Model? Relational Database: Definitions
The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in
More information