Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


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

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

2 Class information Website www.cs.wcupa.edu/~zjiang/csc545index.htm www.cs.wcupa.edu/~zjiang/csc545index.htm

3 Why this class? ◦ Job hunting  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, 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

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 Summer Training on Computer Science, WCU ◦ ≥≥  & ◦  ◦ &  Word

10 Summer Training on Computer Science, WCU Power Point ◦

11 Summer Training on Computer Science, WCU ◦,,

12 Summer Training on Computer Science, WCU Excel =average(c6:c28) Another well used function: SUM Document resource: www.cs.wcupa.edu/~zjiang/summer07_student_gra de_sample.xls. www.cs.wcupa.edu/~zjiang/summer07_student_gra de_sample.xls

13 Summer Training on Computer Science, WCU ◦

14 B2, $b$2

15 Data preparation

16

17

18 Summer Training on Computer Science, WCU IE

19

20

21 Information stored in word, Excel, Powerpoint, PDF, txt (plain text), etc Share/exchange information PrimoPDF http://www.primopdf.com/index.aspx http://www.primopdf.com/index.aspx

22 What do we do with data? Exercise 1 ◦ http://www.cs.wcupa.edu/~zjiang/545_data.pdf http://www.cs.wcupa.edu/~zjiang/545_data.pdf ◦ Data curving  2D  3D surface ◦ Data extraction and recreation ◦ Data search

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

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

25 Exercise 1: http://www.cs.wcupa.edu/~zjiang/csc545_l ab1.doc http://www.cs.wcupa.edu/~zjiang/csc545_l ab1.doc

26 Access   … 

27

28

29

30

31 Input & Output ◦ Page AC211

32 Plain text file

33

34

35

36

37

38

39 Excel file (xls or xlsx)

40

41

42 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

43

44

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

46 Double click the items to include in the list

47

48

49

50 Add criteria to meet the certain requirement

51

52 Datasheet view Design view

53

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

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

56

57

58

59

60

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

62

63

64

65

66

67 Show the Enum of all employees sorted by salary in the ascending order

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

69

70 List all different Dnum, without duplicates.

71

72

73

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 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”)


Download ppt "CSC 545: Database Systems Dr. Zhen Jiang Computer Science Department West Chester University."

Similar presentations


Ads by Google