Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Course information
• Database: creating, modifying, analyzing data.
• Customer Data management:Theories, cases, lab sessions.
• Practical skills.
• Tools: Excel, Access, SQL language, Stata.
• In-class quizzes and Exams (data analysis skills), cases, final
project.
• Participation(15%),homework(20%),Exam(30%),Project(35%)
1
3/31/2020
Reference Books
Access:
• https://support.office.com/en-us/article/database-design-basics-eb2159cf-
1e30-401a-8084-bd4f9c9ca1f5
• Introductory Relational Database Design for Business, with Microsoft
Access. By Jonathan Eckstein, Bonnie R. Schultz
• Problem-solving cases in Microsoft Access and Excel by Ellen F Monk,
Joseph A Brady, Gerard S Cook
Stata:
• An Introduction to Modern Econometrics Using Stata, by Christopher Baum
• Microeconometrics Using Stata: Revised Edition by A .Colin Cameron
Customer Relationship Management
• Customer Relationship Management by V. Kumar, Werner Reinartz
2
3/31/2020
3
3/31/2020
4
3/31/2020
Database Introduction
Definition: Database
• A database is an organized collection of structured information, or
data, typically stored electronically in a computer system.
• The data can then be easily accessed, managed, modified, updated,
controlled, and organized.
• There are many different types of databases.
• Relational databases. Relational databases became dominant in the
1980s.
• Source:
• https://www.oracle.com/database/what-is-database.html
5
3/31/2020
Relational databases
• Items in a relational database are organized as a set of tables with
columns and rows.
• Relational database technology provides the most efficient and flexible
way to access structured information.
• Databases like Oracle, SQL Server, and Microsoft Access are all relational
databases
• this flexibility also means the speed of processing is somewhat slower.
• Oracle and SQL Server are capable of handling medium to large-sized
companywide marketing programs, while Microsoft Access is used for
smaller-sized database marketing initiatives.
6
3/31/2020
7
3/31/2020
Data Management
•Create Can I insert a new sales record with Order ID equal to 890?
•Read What is the sale amount for the Order with ID equal to 998?
•Update Can I change quantity from 22 to 18 for sale with Order
ID equal to 613?
•Delete Can I cancel sale with Order ID equal to 1761?
•Analysis What is the total sales amount in 2009?
Which customer is the biggest client?
8
3/31/2020
9
3/31/2020
Query
• “Relating” Two or More Tables by the Join Operation
• To complete the query, you must join the tables by linking the
common fields
• The names of the join fields are irrelevant; the names of the tables or
fields to be joined may be the same, but it is not required for an
effective join.
• Make a join by bringing in (adding) the tables needed. Next, decide
which fields you will join.
• Click-and-drag operation. Access inserts a line to signify the join.
10
3/31/2020
Query: Calculations
• Using Calculated Fields in Queries
• A calculated field is an output field made up of other field values.
• A calculated field is not a field in a table; it is created in the query
generator.
• The calculated field does not become part of the table—it is just part
of the query output.
• Understand this process by an example (lab session).
11
3/31/2020
12
3/31/2020
Class project:
Table relations
13