Presentation is loading. Please wait.

Presentation is loading. Please wait.

Financial Information Management How do I talk to a DBMS? SQL In one hour.

Similar presentations


Presentation on theme: "Financial Information Management How do I talk to a DBMS? SQL In one hour."— Presentation transcript:

1 Financial Information Management How do I talk to a DBMS? SQL In one hour

2 Critical Thinking  Easy meter

3 Before Querying….  Figure out what data is available  Ask about the data model and the data dictionary, but…  …they may not have it. A picture of the contents of the database A text description of the contents of the database (e.g. columns content)

4 Real World Example (fragment)

5 Financial Information Management SmallBank Ltd. Database example

6 Loan Officer Table ACTUAL TABLE DIAGRAM ACTUAL TABLE DIAGRAM LO id f name l name phone

7 Data Model: SmallBank,Ltd. One Many

8 One Many Reading the Relationships 11 22 3344 55 66

9 Navigating the Relationship (join) foreign key: a PK in another table, used to link the two tables

10 Different Dialects, Same Idea Chen Modified Chen (IE) IDEF1X Microsoft LoanLoan Loan Officer admin by LoanLoan Loan Officer admin by 1:10:n Employee Dept Admin by LoanLoan Loan Officer Employee Dept LoanLoan Loan Officer

11 Financial Information Management WINIT What Is New In Technology?

12 Financial Information Management Homework SQL Practice

13 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

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

15 4+2 BASIC SQL COMMANDS  SELECT  INSERT  UPDATE  DELETE  CREATE  DROP

16 Interacting with a DB (1) You Your browser Data (Customer, Product, Order) DBMSDBMS On a Server somewhere SQL On your local machine (e.g., laptop, lab PC) Web server

17 Interacting with a DB (2) You Some BI software DBMSDBMS On a Server somewhere SQL On your local machine (e.g., laptop, lab PC) Data (Customer, Product, Order) Example: Tableau, Excel

18 Interacting with a DB (3) You Visual Studio Small Bank DB (Loan, Loan Officer, Customer…) Small Bank DB (Loan, Loan Officer, Customer…) SQL Server DBMS Server in the McIntire datacenter F-sg6m-s4.comm.virginia.edu SQL Your local machine (e.g., laptop, lab PC) DEMO

19 Suggestions Easier to connect from the labs. Connecting from your laptop or home requires a VPN

20 You do the talking  Name, Major  Learning Objectives  Things you like about the class  Things that can be improved  Attitude towards the Tournament


Download ppt "Financial Information Management How do I talk to a DBMS? SQL In one hour."

Similar presentations


Ads by Google