SQL PROGRAMMING AND THE EXTERNAL MODEL Fact of the Week: According to the 2010 outlook from the BLS 286,600 new Computer, Network, and Database administrator.

Slides:



Advertisements
Similar presentations
GCSE ICT By the end of this session, you will be able to: Explain main features of ATM machines Identify features of credit cards, debit cards, smart cards.
Advertisements

Monday, December 3rd. Phase 1: Authentication.
Extern name server - translates addresses of s messages - enables users to use aliases - … ID cards system - controls entrance to buildings,
Use Case Model. C-S 5462 Use case model describes what the user expects the system to do –functional requirements may describe only the functionalities.
IST359 M005 Yang Wang 342 Hinds SQL Programming And The External Model.
Bank On It Personal Finance Unit. Why Learn About Banking?
Bank On It.
STRUCTURED QUERY LANGUAGE SQL Fact of the Week: According to the 2010 outlook from the BLS 286,600 new Computer, Network, and Database administrator jobs.
Structured Query Language SQL
Ch1: File Systems and Databases Hachim Haddouti
11 3 / 12 CHAPTER Databases MIS105 Lec14 Irfan Ahmed Ilyas.
Concepts of Database Management Sixth Edition
Financial Algebra © 2011 Cengage Learning. All Rights Reserved. Slide EXPLORE COMPOUND INTEREST Understand the concept of getting interest on your.
Sql Server Advanced Features MIS 424 Professor Sandvig.
Using A Check Book 3 rd Grade Math Jeanette Conner.
ABSTRACT Before the evolution of computers, all the details in a banking systems used to be maintained manually. This is not advisable because maintenance.
Automating 100 Processes with Interneer Apps Chris Condon – Director, IT Innovation and Solutions, Los Angeles Firemen’s Credit Union.
Banking and Finance Business and Computer Science Mr. Dukes.
Unit 5 - Your Money: Keeping it Safe and Secure.
How should I pay?. I listed these in the order I think you are most likely to encounter them.  Cash  Check  Debit card (use for a Debit or Credit transaction)
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Transaction Management Overview Chapter 16.
Microsoft Azure Introduction ISYS 512. Microsoft Azure Microsoft Azure is a cloud.
Fifth Edition 1 M a n a g e m e n t I n f o r m a t i o n S y s t e m s M a n a g I n g I n f o r m a t i o n T e c h n o l o g y i n t h e E – B u s i.
Introduction. 
7/17: Database Management
Bank On It 1. 2 Purpose Bank On It : Is an overview of banking services. Will help you build a positive relationship with banks, thrifts, and credit unions.
 CONVENIENT  HELPS YOU KEEP TRACK OF MONEY: USING THE CHECK REGISTER OR ONLINE BANKING  SAVES YOU MONEY – EXPENSES ARE LESS THAN MONEY ORDERS.
Checking Accounts Making a deposit Writing a check Maintaining a checkbook register Balancing a checking account.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
1 Object-Oriented Analysis Use Case Driven. 2 The outline method for OOA 1.Identify object classes within the problem domain 2.Define the behaviour of.
ICT and Banks Banks use mainframe computers to maintain customer accounts. They store a record of each customer’s withdrawals and deposits. Each bank mainframe.
Bill Payment Optimization Algorithms. Purpose To find and/or construct algorithms that will optimize the decision process of paying bills from an account.
Data Management Console Synonym Editor
Inventory Management System for Department of Computer Science Group Number
First in Service -Best in Banking Pavan Anna Shirish Nadella Maneeshpal Bandlamudi.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
Advantage of File-oriented system: it provides useful historical information about how data are managed earlier. File-oriented systems create many problems.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
9 January 2006 MIS for CarRes User Group Meeting 1 Peter Havskov Christensen, M.Sc.
Why do we need a database?
Database Management Systems (DBMS)
Irwin/McGraw-Hill Copyright © 2001, The McGraw-Hill Companies, Inc. All rights reserved. I n t r o d u c t i o n t o I n f o r m a t i o n S y s t e m.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
GOALS BUSINESS MATH© Thomson/South-WesternLesson 3.2Slide 1 3.2Electronic Banking Record electronic banking transactions Find account balance when banking.
Advanced Databases DBA: Security 1. Advanced Databases Agenda Understand the need for security. Learn about System Permissions and Object permissions.
How to take limit Ph: 022/ – 022/ Time: Mon to Fri ( 09:00 am to 7:00 pm) Sat: (10:00 to 6:00) Sunday and Bank.
11/11/20041 CS542 Database Management Personal Financial Planner Project Progress Presentation Jonathan Perreault 11/11/04.
My audience will be excited to learn the basics of what a network systems & data communications analyst does.
Constraints Review. What is a constraint? Unique – forbids duplicate values Referencial – Foreign key Check Constraint – sets restrictions on data added.
Money, Banking, Saving, and Investing Key Terms. bank A business whose main purpose is to receive deposits and make loans.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
SSMS SQL Server Management System. SQL Server Microsoft SQL Server is a Relational Database Management System (RDBMS) Relational Database Management System.
Prateek Demla Todd Dobbs Jasmine Jackson Vikrant Naik.
Data Resource Management Lecturer: Dr Mohammad Nabil Almunawar.
CS 325 Spring ‘09 Chapter 1 Goals:
Chapter 1: Introduction
© 2016, Mike Murach & Associates, Inc.
Use Case Model.
Vocabulary for March 27-Mar. 31
Introduction to Database Management System
Bank On It.
Research & Interview Summary
Chapter 10: Money and Banking Section 3
Rocky K. C. Chang September 11, 2018
Example: Banking Database
Presentation transcript:

SQL PROGRAMMING AND THE EXTERNAL MODEL Fact of the Week: According to the 2010 outlook from the BLS 286,600 new Computer, Network, and Database administrator jobs will be added in the next decade.

Learning Objectives  Understand the rationale and purpose of SQL programming  Understand and explain the external data model  Learn how to create views, stored procedures, and functions  Learn how to perform program flow control in T- SQL

Where are we?

Internal –vs- External Data Models  Optimal design for storing data  Complex & atomic in nature  Implemented with Tables, keys, constraints  Mimics user functionality  Abstracted & simplified in nature  Implemented with views, stored procedures, functions INTERNALEXTERNAL

Let’s explore the external data model and T-SQL programming by example. Fudge Fictitious Credit Union

Basic Data Model (Internal Model)

FFCU – Uber-Simplified User Stories 1. When a person signs up, then they become a new customer. All new customers have an opening balance in their savings account. 2. A customer can deposit funds into their account. 3. A customer can withdrawal funds from their account 4. A customer can have view balances their 2 types of accounts, Checking and Savings 5. A customer can transfer funds between their accounts. (checking to savings and vice-versa)

External Model  p_signup – sign a user up for an account  p_deposit – deposit funds into user’s account  p_withdrawl – take out funds from a user’s account  p_transfer – transfer funds from one user account to another  v_myaccounts – show balances for the user’s account

p_signup  INSERT INTO Customers...  INSERT INTO Accounts…  (Savings with initial starting amount)  INSERT INTO Accounts…  (Checking)

p_transfer  UPDATE Accounts…  (Remove amount from account)  UPDATE Accounts…  (Add amount to account)

v_myaccounts  Show detailed account information for Customer, Account(s), and Type(s) of Accounts.