Financial Information Management How do I talk to a DBMS? SQL In one hour
Critical Thinking Easy meter
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)
Real World Example (fragment)
Financial Information Management SmallBank Ltd. Database example
Loan Officer Table ACTUAL TABLE DIAGRAM ACTUAL TABLE DIAGRAM LO id f name l name phone
Data Model: SmallBank,Ltd. One Many
One Many Reading the Relationships
Navigating the Relationship (join) foreign key: a PK in another table, used to link the two tables
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
Financial Information Management WINIT What Is New In Technology?
Financial Information Management Homework SQL Practice
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 INSERT UPDATE DELETE CREATE DROP
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
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
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
Suggestions Easier to connect from the labs. Connecting from your laptop or home requires a VPN
You do the talking Name, Major Learning Objectives Things you like about the class Things that can be improved Attitude towards the Tournament