Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dr. Zhen Jiang Computer Science Department West Chester University

Similar presentations


Presentation on theme: "Dr. Zhen Jiang Computer Science Department West Chester University"— Presentation transcript:

1 Dr. Zhen Jiang Computer Science Department West Chester University
CSC 545: Database Systems Dr. Zhen Jiang Computer Science Department West Chester University

2 Class information Website

3 Why this class? Job hunting Something help you to stand out!
WCU graduated, Database, Software Engineering, … vs. Undergraduates UPenn, Temple, Drexel, … Something help you to stand out!

4 Research project Critical thinking, communication, well-plan, etc. Real competition, deadline, pressure More realistic system, complex programming, for instance, Student opportunities: Sponsorship NSF, NSA, etc Industry interns

5 No pain, no gain Need to handle those things coming from pressure: frustration, upset, madness, etc. Looking for solution, not excuse. Deadline!

6 Class website (including ppt)+ google search
Hands-on experience Group discussion Happy ending!

7 How do you like to be introduced? No pain, no gain Happy ending
Need to handle those things coming from pressure: frustration, upset, madness, etc. Looking for solution, not excuse. Deadline!

8 Where do you find data? Share the experience of data processing: Word, Power point, Excel, IE, and etc.

9 Word <Insert> <Copy> & <Paste> <Ctrl><p>
<Symbol> <Copy> & <Paste> <Ctrl> <c>  <Ctrl> <v> <PrtSc> & <Alt> <PrtSc>  <Ctrl> <v> <Ctrl><p> Summer Training on Computer Science, WCU

10 Power Point ! <Insert> <Date and Time>
Summer Training on Computer Science, WCU

11 <Slide Show> <Custom Animation>, <Add Effect>, <Motion Path> ! Summer Training on Computer Science, WCU

12 Excel Document resource: =average(c6:c28) Another well used function: SUM ! Summer Training on Computer Science, WCU

13 ! <Insert> <Chart>
Summer Training on Computer Science, WCU

14 <view> <freeze panes>
B2, $b$2

15 Data preparation

16

17

18 IE Summer Training on Computer Science, WCU

19 Summer Training on Computer Science, WCU

20 Summer Training on Computer Science, WCU

21 What do we do with data? Exercise 1
Data curving 2D 3D surface Data extraction and recreation Data search

22 More efficient manner to store, search, and display the data!
Conditional search Wildcard match

23 Database Systems & Access
Is PC more popular? What is you laptop brand? What OS is installed, Linux or Windows? Access

24 Access <Start>  <All program>  …  <Microsoft Office Access 2007>

25

26 Input each piece of information manually

27

28

29 Design view to change the format type (especially useful for currency and date input)

30

31 Database Systems & Access
Page: AC14 Page: AC44 Exercise 1:

32 Creating a report Report wizard, page AC50-AC56

33 Input & Output Load/import data from external resource, Page AC211

34 Plain text file

35

36

37

38

39

40

41 Excel file (xls or xlsx)

42

43

44 Querying Creation (Query wizzard) Save Use

45 Wildcard (*, ?), page AC87 Use criteria for a field not included in the result list, page AC88 Parameter Query, page AC89 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 Multiple table, page AC103 Calculated field, page AC 113 Calculating Statistics and Aggregate Values, page AC 117

46

47

48 Show the name and age and salary of all employees who are younger than 25.

49 Double click the items to include in the list

50

51

52

53 Add criteria to meet the certain requirement

54

55 Datasheet view Design view

56 Comparison Operator, such as <25 in age field
Wildcard (*, ?), such as “B*”, “*m*”, “*s”, and “S????” in LName field Compound criterion (AND => same row, OR => different rows) Sorting (By default, it is sorted in ascending order) Use criteria for a field not included in the result list, disabled show property Multiple keys (high priority from left to right) Top-value query, “return” in top design view Parameter Query, “[ ]” in dnum field, or any name that has not been used as column names (possiblily a misspelled column name) Calculated field, “zoom” in shortcut menu (e.g., “Total Amount:[Amount Paid]+[Current Due]”) Calculating Statistics (built-in statistics) Multiple table, share field Aggregations (statistics with “group by”)

57 Show the Enum, name, salary of all employees whose names have 5 letters.

58

59

60

61

62

63 Show the name, Enum ,salary, and age of all employees with a salary > $40,000 AND younger than 25

64

65

66

67

68

69 Show the Enum of all employees sorted by salary (i. e
Show the Enum of all employees sorted by salary (i.e., in the ascending order by default)

70 Hidden column for criteria (not displayed in the list)

71 Q4 Enum E909 E303 E404 E222 E202 E101 E707 E606 E505 E808

72 Show the Enum of all employees sorted by salary (in ascending order) and LName (in descending alphabetical order)

73 Which? Q4 Enum E909 E303 E404 E222 E202 E101 E707 E606 E505 E808 Q4

74 List top 5 high paid employees.

75

76

77 List the LName of all employees in the department (Dnum) entered by the user.

78

79

80

81

82

83

84

85 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).

86

87

88

89

90

91 List the max, min, and average of salary for all employees.

92

93

94

95

96

97

98 Multiple table (AC 105-109) Emp Dept Enum LName age salary Dnum wYears
Jones 45 $56,000.00 D25 12 E202 Anders 66 $46,000.00 D22 25 E303 Smith 34 $25,000.00 9 E404 Rivera 22 $30,000.00 1 E505 Brown $80,000.00 17 E606 Caldwell 52 $70,000.00 D28 20 E707 Stiles 44 $65,000.00 11 E808 Walker 48 $90,000.00 21 E909 Hartman E222 Carter 29 $35,000.00 3 Dept Dnum Dname City D22 Web WC D25 Databases NY D28 Software LA

99 Multiple tables and aggregations (statistics with group)
Exercise 2:

100 For each employee, print out his/her name and the department name.

101

102

103

104

105

106

107 Calculation of aggregate values (aggregations, statistics with grouping)

108 Show the average age (label as “average age”) and average salary (label as “average salary”) for all employees

109

110

111 For all employees under 30, show a count of these employees and their average salary.

112

113

114

115 Show the max, min and average age for all employees in Dept “Software”

116 Multiple tables are needed!

117

118

119 Still sounds incorrect!

120

121 For all employees in department “D22” or “D28”, show a count of these employees, their average age, and maximum salary

122

123

124

125

126

127 What will be the result?

128

129 For each department list avg, max and min age, along with a count of employees in each department.

130

131

132

133

134 For each department find a count and average salary for all employees younger than 40.

135

136

137 For each department with an average salary of > list the dnums, employee count for these departments.

138

139

140 For each department with less than 4 employees, show the average age and number of employees.

141

142

143 For each department with more than 2 people over 40 list deptNum, and a count of these people.

144

145

146 Project 1 Submit accdb file.

147 Maintenance Record addition, page AC 144 Search, page AC 145
Record update, page AC 147 Record deletion, page AC 148 Filter, page AC 149


Download ppt "Dr. Zhen Jiang Computer Science Department West Chester University"

Similar presentations


Ads by Google