Financial Information Management FIM: Databases Stefano Grazioli.

Slides:



Advertisements
Similar presentations
ISMT221 Information Systems Analysis and Design Prototyping with MS Access Lab 6 Tony Tam.
Advertisements

1 Basic DB Terms Data: Meaningful facts, text, graphics, images, sound, video segments –A collection of individual responses from a marketing research.
Access A Relational Database Management System. Prof. Leighton2 Database ► A database is a collection of data that’s related to a particular topic ► A.
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
3-1 Chapter 3 Data and Knowledge Management
CSC 2720 Building Web Applications Database and SQL.
© Stefano Grazioli - Ask for permission for using/quoting:
Financial Information Management FIM: Databases Stefano Grazioli.
Financial Information Management How do I talk to a DBMS? SQL In one hour.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Database Lecture # 1 By Ubaid Ullah.
1 Intro to Info Tech Database Management Systems Copyright 2003 by Janson Industries This presentation can be viewed on line at:
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Database Concepts & Introduction to MS Access 1. Outline Database Overview  Database Management System Concepts  Database Structures Database, tables,
Financial Information Management DBMS and Operations, BI, and Analytics Stefano Grazioli.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
Introduction to SQL Steve Perry
2440: 141 Web Site Administration Database Management Using SQL Professor: Enoch E. Damson.
Simple Database.
Databases. Database A database is an organized collection of related data.
SQL 101 for Web Developers 14 November What is a database and why have one? Tables, relationships, normalization SQL – What SQL is and isn’t – CRUD:
Database Fred Durao What is a database? A database is any organized collection of data. Some examples of databases you may encounter in.
SQL Structured Query Language Programming Course.
INTRODUCTION TO DATABASES CS 260 Database Systems.
FEN  Data Definition: CREATE TABLE, ALTER TABLE  Data Manipulation: INSERT, UPDATE, DELETE  Queries: SELECT SQL: Structured Query Language.
Financial Information Management Putting VB & SQL To Work Stefano Grazioli.
BY SATHISH SQL Basic. Introduction The language Structured English Query Language (SEQUEL) was developed by IBM Corporation, Inc., to use Codd's model.
Financial Information Management Changing data in a DB Stefano Grazioli.
Financial Information Management Operations, BI, and Analytics Stefano Grazioli.
1 Why Learn About Database Systems? Database systems process and organize large amounts of data Examples –Marketing manager can access customer data –Corporate.
© Stefano Grazioli - Ask for permission for using/quoting:
© Stefano Grazioli - Ask for permission for using/quoting:
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Visual Programing SQL Overview Section 1.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
CS453: Databases and State in Web Applications (Part 2) Prof. Tom Horton.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Chapter 3: Relational Databases
Financial Information Management Business Intelligence Putting VBA & SQL To Work.
© Stefano Grazioli - Ask for permission for using/quoting: Putting VBA & SQL To Work.
Financial Information Management Modifying data in a DB Stefano Grazioli.
© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.
Financial Information Management Operations, BI, and Analytics Stefano Grazioli.
© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Databases and SQL CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
CS320 Web and Internet Programming SQL and MySQL Chengyu Sun California State University, Los Angeles.
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
Programming for the Web MySQL Command Line Using PHP with MySQL Dónal Mulligan BSc MA
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
Databases Stefano Grazioli.
Operations, BI, and Analytics
Process Automation The Technology
Process Automation The Technology
Business Intelligence
CS320 Web and Internet Programming SQL and MySQL
Principles of Software Development
Dynamic SQL Queries Stefano Grazioli.
PHP and MySQL.
Dynamic SQL Queries Stefano Grazioli.
BI: Accessing Enterprise Data
BI: Accessing Enterprise Data
CS3220 Web and Internet Programming SQL and MySQL
Dynamic SQL Queries Stefano Grazioli.
Dynamic SQL Queries Stefano Grazioli.
CS3220 Web and Internet Programming SQL and MySQL
Database Connections.
Operations, BI, and Analytics
Operations, BI, and Analytics
Presentation transcript:

Financial Information Management FIM: Databases Stefano Grazioli

Debriefing  Still doing well  Lab  Easy meter

You are a financial analyst at a broker firm…. Many of our customers invest for short amounts of time on Google. They sell their shares within a few weeks…. I wonder: do they make any money out of it?

You do the talking  Name, major  Learning objectives  Things you like about the class  Things that can be improved  Strengths / Attitude towards the Tournament

Financial Information Management FIM: Databases Stefano Grazioli

Why do we need Databases?  Program (e.g., VBA) data is volatile  Data in one place for everyone to use  Indispensable in commerce

DBs vs. DBMSs  A database (DB) is an organized collection of data  A database Management System (DBMS) is a software that provides data-related functionality DBMS User or program DBMS: Access, Oracle, IBM DB2, SQL Server, MySQL... User or program ‘Client’ program Data center User location

DBs and the Web DBMS User or program Browser program Data center User location Web server

Relational DBMS When a DBMS organizes your data so that they appear to the users as TABLES, that DBMS is a Relational DBMS, or RDBMS. RDBMS Client program Is Excel a DB, a DBMS, a RDBMS?

Financial Information Management Congratulations! You are hired at SmallBank Homework

You are a Business Intelligence analyst at SmallBank Welcome! So glad that you are here and can help us with Business Intelligence! I have so many business questions for you… (1) Who are our customers in Austin, TX? I need a list of first names, last names and IDs (2) What are the rates that we offered on our loans? Prepare a report with the loan IDs and rates for the loans under $50,000,000 (3) …. Please access our MS SQL Server and create these reports for me…

Data center User location Accessing Business Data RDBMS MS SQL Server SmallBank data: Loan, Loan Officer, Customer, Insurance Plan SmallBank data: Loan, Loan Officer, Customer, Insurance Plan SQL Client Visual Studio F-sg6m-s4 Sql queries

Example Table: Loan Officer ACTUAL TABLE DIAGRAM LO id f name l name phone demo

Small Bank DB: Data Dictionary  Loan  l_id = the loan unique id  principal, rate, date_due,  Loan officer  lo_id = the loan officer’s unique id  f_name, l_name, phone  Customer  c_id = the customer’s unique id  f_name, l_name, city, state  Insurance plan  coverage = maximum amount covered  premium = amount to pay every year

Financial Information Management WINIT What Is New In Technology?

Financial Information Management SQL Queries

SQL  Structured Query Language  The standard language for databases  70s: - Codd - SEQUEL – Structured English QUEry Language  commercialized it in 1979  1986 ISO/ANSI  Sometimes sought as a required skill in interviews

SQL EXAMPLE: A QUERY SELECT First_Name, Last_Name, ssn FROM StudentTbl WHERE gpa > 3.0 ORDER BY Last_Name;

4+2 BASIC SQL COMMANDS  SELECT = ‘search’  INSERT a new row  UPDATE a existing row  DELETE a row  CREATE a table  DROP a table

Reading the Data Model Primary key: a unique identifier used to retrieve the record

One Many Reading the Relationships

Navigating the Relationships (‘join’) foreign key: a PK in another table, used to link the two tables FK

Joins are commonsense If I give you c_id ‘4977’, can you give me the phone numbers of the loan officers for that client?

SQL Query Select loan_officer.phone from customer_in_loan, loan, loan_officer where customer_in_loan.c_id = '4977' and customer_in_loan.l_id = loan.l_id and loan.lo_id = loan_officer.lo_id