Marianne coaches a girls’ softball team. She is using a database to store data about the players. She is looking at each player’s record to determine who is the best batter on the team.
How can you use this database to find the best batter on the team?
ANSWER player number, last name, first name, phone number, position, times at bat, singles, doubles, triples, home runs
ANSWER text fields: last name, first name, position; numeric fields: player number, phone number, times at bat, singles, doubles, triples, home runs; date and memo fields: none
ANSWER player number
ANSWER Ali, Olivia
ANSWER Anita Kong
ANSWER Marcie Barrett (sorted in ascending order) or Pat Miller (sorted in descending order)
ANSWER Olivia Ali
ANSWER She can sort based on greatest number of home runs, etc., Marianne will create a new field called “Batting average”. To do so, she needs to add the number of each player’s hits, divide this sum by the number of times the player has been at bat, and round the dividend to three places. As Pat Miller has a batting average of 0.840, she is the best batter. Her sister Trina, however, has an equal record as to home runs and triples and thus could also be chosen to bat third.
ANSWER For example, players’ phone numbers are not indicative of their skill. The field is useful because Marianne will likely need to call the players.
ANSWER For example, batting average and on-base percentage would be useful because batting line-ups are often based on this data. Whether a batter bats right or left-handed or can switch hit would also be useful.
ANSWER For example, it might be used to decide specific player line-ups against specific teams, or who to send in as a replacement pitcher, hitter, or runner.
ANSWER For example, schools, various government agencies, health care professionals, employers
Indira decides to create a database for the information about the QWERTY keyboard and letter frequencies in lesson 3.1. Her database is shown. How can Indira sort her database to find out how many of the 10 most frequent letters are typed with the left hand?
I sorted by the field “Frequency in 1000 letters.” I used the “sort” button and chose “descending” instead of “ascending” to list the letters from greatest to least frequent. I see the letters in descending order of frequency. Six of these letters are typed with the left hand.
Mrs. Cooper, the school secretary, keeps a student information database on the school computer. Part of her database is shown.
Mrs. Cooper wants to create a school phone directory of these eight names alphabetically by last name and then first name. If she sorts the database, which name will be third?
First I sorted the last names alphabetically. Then I sorted the first names alphabetically.
Now the third name is James Brown.
ANSWER Yan, Ye; The lowest grade is 5, and two students are in grade 5: Mark Adams and Ye Yan. Since Yan comes after Adams alphabetically, Ye Yan will be the last name on the list.
ANSWER Hardy, Melissa; The highest grade is 8, and two students are in grade 8: Mandy Goring and Melissa Hardy. Since Hardy comes after Goring alphabetically, Melissa Hardy will be the last name on the list.
ANSWER Yan, Ye; The least room number is room 116, and three of the students are in room 116. Since, of the three, Ye Yan has the last name alphabetically, she will be the last name listed.
ANSWER Goring, Mandy; The greatest room number is room 222, and Mandy Goring is the only student in that room.
ANSWER text; e-mail addresses are written in text
ANSWER numeric; math marks are numeric
ANSWER numeric; shoe sizes are numeric
ANSWER memo; comments about student effort are messages, or memos
ANSWER date; days are dates
ANSWER text; ingredients are listed in text
ANSWER numeric: Code, Year Released, Running time (min); text: Title, Studio; date: (none); memo: Notes
ANSWER Agent Cody Banks 2003, Shrek 2001, Casper 1995, The Little Mermaid 1989, Grease 1977
The third year is 1995. Casper is the third movie.
ANSWER by Country
ANSWER China: 1273; U.S.A.: 278.1; Brazil: 174.4; Congo: 53.6; Canada: 31.6; Australia: 19.4; Niger: 10.4; Singapore: 4.3; Jamaica: 2.7; Iceland: 0.3
China would be first on the list.
ANSWER Population; Iceland is last on the list in the above list sorted by population.
ANSWER Population density; Singapore’s population density of 6693.4 people/square km is the greatest in the list.
ANSWER
Singapore: 620; Jamaica: 11 000; Iceland: 103 000; Congo: 342 000; Niger: 1 267 000; Australia: 7 687 000; Brazil: 8 512 000; U.S.A.: 9 373 000; China: 9 597 000; Canada: 9 976 000
The first five countries would be Singapore, Jamaica, Iceland, Congo, and Niger.
ANSWER As in a database, an order form has several fields, space for records (customer orders in this case), and room for entries in the records under each field.
ANSWER The headings in the order form could be the names of the fields in a data base, and each customer order could be a record in the database.
ANSWER
For example,
ANSWER a menu
ANSWER a dictionary
ANSWER the weather section of a newspaper
ANSWER a thesaurus
ANSWER an atlas or an encyclopedia
ANSWER Date published; arranges the entries to list the most recently published first
ANSWER Status; lets Katya know if the book is available
ANSWER Call #; indicates where to find the book
ANSWER Author; lists together all books in the list by the same author
ANSWER for example, patient’s names, health card numbers, phone numbers, addresses, history of health
ANSWER for example, find pet information: pet’s cared for, pet owner, pet health history, operations performed
ANSWER for example, criminal history including date of offence, details of offence,
ANSWER for example, find homes for sale, by listing of price, location, contact number