Download presentation
Presentation is loading. Please wait.
1
Week 9 – Databases
2
Topics this week Transmission media Networks The Internet of Things
Media in Oman Networks Switching The Internet Protocol The Internet of Things Newer applications of and telecommunications RFID GPS
3
Last name First name Address
Database Basics Databases consist of Records Records consist of Fields Your HR record might look like this: Field Field Field Last name First name Address
4
Database Basics If we kept this employee information, what would a record look like? Draw it out. Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
5
Database Basics SQL access to information Structured Query Language (SQL) SELECT TITLE, CATEGORY FROM DVD_STORE WHERE CATEGORY = 'Thriller' and RENTPRICE < 5 The program will pull a field (or two) from a database if a field is equal to some value.
6
Database Basics If we kept this employee information, how would you get the names of all employees who worked in the marketing department? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
7
Database Basics How might I use this information to print out a pay check? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
8
Database Basics How would I calculate all the wages paid last week in the marketing department? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
9
Database Basics How would I list all the employees supervised by Abdul Said? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
10
Database Complications
If we kept this employee information, how would you get the names of all employees who had an MBA? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
11
Database Complications
What if I wanted to store the names of all the customers an employee sold a product to last week? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
12
Database Complications
What if I wanted to know which employee sold the most products last week? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
13
Database Complications
What if I wanted to know which employee has increased sales the most over the last six months? Last name First name Address Department Hours worked Hourly salary Job title Supervisor’s name Work place qualifications (degrees, certificates, professional designations)
14
Database Example You want to track sales for Lulu’s HyperMarket. What records might you use to track this information: Customer name, address, age, number of children, all the products he bought today. All the products he bought in any visit in the last 90 days. For the products we want to know product name, size, UPC number, quantity, department, unit cost, unit price, profit, wholesaler. How would you calculate the amount of profit he generated for your company in the last 90 days?
15
Review What are 3 things from today’s class you want to remember?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.