Presentation is loading. Please wait.

Presentation is loading. Please wait.

© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.

Similar presentations


Presentation on theme: "© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli."— Presentation transcript:

1 © Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu Stefano Grazioli

2  Lab  Easy meter

3 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?

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

5 © Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu

6  Program (e.g., VBA) data is volatile  Data in one place for everyone to use  Indispensable in commerce

7  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

8 DBMS User or program Browser program Data center User location Web server

9 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?

10 © Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu Homework

11 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…

12 Data center User location 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

13 ACTUAL TABLE DIAGRAM LO id f name l name phone demo

14  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

15 © Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu What Is New In Technology?

16 © Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu

17  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

18 SELECT First_Name, Last_Name, ssn FROM StudentTbl WHERE gpa > 3.0 ORDER BY Last_Name;

19  SELECT = ‘search’  INSERT a new row  UPDATE a existing row  DELETE a row  CREATE a table  DROP a table

20 Primary key: a unique identifier used to retrieve the record

21 One Many 11 22 3344 55 66

22 foreign key: a PK in another table, used to link the two tables FK

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

24 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


Download ppt "© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli."

Similar presentations


Ads by Google