Download presentation
Presentation is loading. Please wait.
Published byGeorgiana Cobb Modified over 9 years ago
1
CSC321: Database Management Systems Dr. Zhen Jiang Computer Science Department West Chester University West Chester, PA 19383
2
Why this class? ◦ Job hunting WCU graduated, Database, Software Engineering, … vs. UPenn, Temple, Drexel, … ◦ Something help you to stand out! — How do you like to be introduced?
3
◦ Research project Critical thinking, communication, well-plan, etc. Real competition, deadline, pressure More realistic system, complex programming, for instance, http://www.cis.temple.edu/~jiang/RSU_van.pptx. http://www.cis.temple.edu/~jiang/RSU_van.pptx ◦ Student opportunities: http://www.cs.wcupa.edu/~zjiang/student_info.htm http://www.cs.wcupa.edu/~zjiang/student_info.htm ◦ Sponsorship NSF, NSA, etc Industry interns
4
NSF REU Collaborative work at inter- department level Collaboration at inter-disciplinary level Course project Collaboration at international level
5
Industry partners Such as Gnostech, Chase, etc. Invited talks in courses Seminars or guest speeches Curriculum review/assessment Permanent intern opportunities
6
Competitive students entrepreneurially and computationally empowered citizenries Temple, NYU, etc. IBM, SAP, Vanguard, Bell lab, etc. Attract students and keep them continuously working hard Real-world computing paradigms and principles in an obstacle-less learning
7
No pain, no gain Need to handle those things coming from pressure: frustration, upset, madness, etc. Looking for solution, not excuse. Deadline!
8
Class website (including ppt)+ google search Hands-on experience Group discussion Happy ending!
9
Database, Database management system, and Access Shelly, Cashman, Pratt, “Microsoft Office Access 2007 Comprehensive Concepts and Techniques”, Course Technology
10
Access …
11
Input each piece of information manually
15
Design view to change the format (especially useful for currency and date input)
17
Database Systems & Access Page: AC14 Page: AC44 Exercise 1: http://www.cs.wcupa.edu/~zjiang/csc321_l ab1.doc http://www.cs.wcupa.edu/~zjiang/csc321_l ab1.doc
18
Creating a report ◦ Report wizard, page AC50-AC56
19
Input & Output ◦ Load/import data from external resource, Page AC211
20
Plain text file
27
Excel file (xls or xlsx)
30
Querying Creation (Query wizzard) Save Use
31
Wildcard (*, ?), page AC87 Use criteria for a field not included in the result list, page AC88 Parameter Query, page AC89 Join table, page AC103 Comparison Operator, page AC94 Compound criterion (AND, OR), page AC 95 Sorting, page AC97 Omitting duplicates, page AC 100 Multiple keys (high priority from left to right), page AC101 Top-value query, page AC 102 Calculated field, page AC 113 Calculating Statistics (built-in statistics, group), page AC 117
32
Exercise 2: http://www.cs.wcupa.edu/~zjiang/csc321_l ab2.doc http://www.cs.wcupa.edu/~zjiang/csc321_l ab2.doc
35
Show the name and age and salary of all employees who are younger than 25.
36
Double click the items to include in the list
40
Add criteria to meet the certain requirement
42
Datasheet view Design view
44
Hidden column for criteria (not displayed in the list)
45
Wildcard (*, ?), such as “Ber*” in City field Use criteria for a field not included in the result list, disabled show property One table, decide it early and add all fields at the beginning Comparison Operator, such as >10000 in amount paid field Compound criterion (AND => 1 row, OR => another row) Sorting Omitting duplicates, “unique record” in property sheet Multiple keys (high priority from left to right) Top-value query, “return” in top design view (very early stage) Calculated field, “zoom” in shortcut menu (e.g., type “Total Amount:[Amount Paid]+[Current Due]”) Calculating Statistics (built-in statistics, “group by”)
46
Show the Enum, name, salary of all employees whose names have 5 letters.
52
Show the name, Enum,salary, and age of all employees with a salary > $40,000 AND younger than 25
58
Show the Enum of all employees sorted by salary in the ascending order
59
Hidden column for criteria (not displayed in the list)
61
List all different Dnum, without duplicates.
65
List top 5 high paid employees.
68
List the LName of all employees in the department (Dnum) entered by the user.
76
List the LName of all employees with a new column labeled “hiring age”, which has a value by subtracting the years of working (wYears) from the current age (age).
82
List the max, min, and average of salary for all employees.
89
Joint table (AC 105-109) Dept DnumDnameCity D22Web WC D25Databases NY D28Software LA Emp EnumLNameagesalaryDnumwYears E101Jones45$56,000.00D2512 E202Anders66$46,000.00D2225 E303Smith34$25,000.00D229 E404Rivera22$30,000.00D251 E505Brown45$80,000.00D2517 E606Caldwell52$70,000.00D2820 E707Stiles44$65,000.00D2811 E808Walker48$90,000.00D2221 E909Hartman20$25,000.00D281 E222Carter29$35,000.00D253
90
For each employee, print out the department name.
97
Statistics of an group ◦ Exercise 3: http://www.cs.wcupa.edu/~zjiang/csc321_lab3. doc http://www.cs.wcupa.edu/~zjiang/csc321_lab3. doc
98
Show the average age (label as “average age”) and average salary (label as “average salary”) for all employees
104
Show the max, min and average age for all employees in Dept “Software”
108
Still sounds incorrect!
110
Join Table (AC 105)
111
For all employees under 30, show a count of these employees and their average salary.
113
For all employees in department “D22” or “D28”, show a count of these employees, their average age, and maximum salary
120
For each department list avg, max and min age, along with a count of employees in each department.
125
For each department find a count and average salary for all employees younger than 40.
128
For each department with an average salary of >40000 list the dnums, employee count for these departments.
131
For each department with less than 4 employees, show the average age and number of employees.
134
For each department with more than 2 people over 40 list deptNum, and a count of these people.
137
Project 1 Submit accdb file.
138
Maintenance Record addition, page AC 144 Search, page AC 145 Record update, page AC 147 Record deletion, page AC 148 Filter, page AC 149
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.