What is SQL?
SELECT *
FROM ATMWithdrawal
WHERE Amount < 50;
Amount < 50 ATMWithdrawal
Conditions in the WHERE Clause
????
SQL query using two tables
Notice that
“A” is a correlation name for Account
and
“D” is a correlation name for Deposit.
•You choose correlation names when you
write the query.
•Useful for disambiguating attribute
names, e.g.,
Actor name vs. Studio name
Another SQL query using two
tables
SQL query using two tables(cont.)
Queries and Physical
Independence
Comments on Queries
Comments on Queries