Download Document

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
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
A picture of the
the data dictionary, but…
contents of the
database
 …they may not have it.
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
LO id
f name
l name
phone
Data Model: SmallBank,Ltd.
One
Many
Reading the Relationships
1
6
One
5
2
3
Many
4
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
Loan
Loan
Loan
Employee
Loan
Employee
0:n
admin by
admin by
Admin by
1:1
Loan Officer
Loan Officer
Loan
Officer
Dept
Loan
Officer
Dept
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)
SQL
Web server
You
Your browser
On your local machine
(e.g., laptop, lab PC)
DBMS
On a Server somewhere
Data
(Customer,
Product,
Order)
Interacting with a DB (2)
SQL
Some BI
software
You
On your local machine
(e.g., laptop, lab PC)
Example: Tableau, Excel
DBMS
On a Server somewhere
Data
(Customer,
Product,
Order)
Interacting with a DB (3)
SQL
You
Visual Studio
Your local machine
(e.g., laptop, lab PC)
SQL Server
DBMS
Server in the McIntire datacenter
F-sg6m-s4.comm.virginia.edu
Small
Bank DB
(Loan, Loan
Officer,
Customer…)
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
Related documents