Exam 1

25 July 2022
4.7 (114 reviews)
67 test answers

Unlock all answers in this set

Unlock answers (63)
question
Qualities of good decision-making?
answer
-production of accurate, relevant, and timely information is the key to good decision making -good decisions require good information that is derived from raw facts -key to business survival in a global market
question
ad hoc query?
answer
-spur of the moment question. ex: What was the dollar volume of sales by product during the past six months?
question
functions of end users?
answer
are the people who use the application programs to run the organization's daily operations. For example, salesclerks, supervisors, managers, and directors are all classified as end users. High-level end users employ the information obtained from the database to make tactical and strategic business decisions
question
functions of programmers?
answer
design and implement the application programs. They design and create the data entry screens, reports, and procedures through which end users access and manipulate the database's data.
question
Data?
answer
The word data covers the collection of facts stored in the database. Because data are the raw material from which information is generated, the determination of what data are to be entered into the database and how those data are to be organized is a vital part of the database designer's job.
question
Information?
answer
the result of processing data to reveal its meaning. Accurate, relevant, and timely information is the key to good decision-making, and good decision-making is the key to organizational survival in a global environment.
question
metadata?
answer
data about data ex: author, date created and date modified and file size are examples of very basic document metadata
question
data dictionary management
answer
The DBMS stores definitions of -the data elements and their relationships (metadata) in a data dictionary -The DBMS uses the data dictionary to look up the required data component structures and relationships, thus relieving you from having to code such complex relationships in each program -Additionally, any changes made in a database structure are automatically recorded in the data dictionary
question
database structure
answer
- Designed by the database designer. - Database design defines the database structure. A well-designed database facilitates data management and generates accurate and valuable information. A poorly designed database can lead to bad decision making, and bad decision making can lead to the failure of an organization.
question
Data inconsistency
answer
Data inconsistency exists when different versions of the same data appear in different places ex: suppose you change an agent's phone number or address in the AGENT file. If you forget to make corresponding changes in the CUSTOMER file, the files contain different data for the same agent. Reports will yield inconsistent results that depend on which version of the data is used.
question
Query result set
answer
-The collection of data rows that are returned by a query (question/ specific request issued to the DBMS for data manipulation) -When you do an ad hoc query, a query result set is returned
question
transactional database
answer
- Transactions such as product or service sales, payments, and supply purchases reflect critical day-to-day operations. Such transactions must be recorded accurately and immediately. A database that is designed primarily to support a company's day-to-day operations is classified as an operational database (sometimes referred to as a transactional or production database
question
enterprise database
answer
When the database is used by the entire organization and supports many users (more than 50, usually hundreds) across many departments
question
workgroup database
answer
-When the multiuser database supports a relatively small number of users (usually fewer than 50) or a specific department within an organization
question
entity
answer
o Anything (a person, a place, a thing, or an event) about which data are to be collected and stored o Represents a particular type of object in the real world o Each entity occurrence is unique and distinct
question
Attribute
answer
o Characteristic of an entity o For example, a CUSTOMER entity would be described by attributes such as customer last name, customer first name, customer phone, customer address, and customer credit limit
question
Field
answer
A character or group of characters (alphabetic or numeric) that has a specific meaning. A field is used to define and store data.
question
Record
answer
: A logically connected set of one or more fields that describes a person, place, or thing. For example, the fields that constitute a record for a customer might consist of the customer's name, address, phone number, date of birth, credit limit, and unpaid balance
question
Row
answer
Each row in a relation is called a tuple
question
relationships
answer
Describes an association among entities
question
one to many relationship
answer
o One-to-many (1:M) relationship: A painter paints many different paintings, but each one of them is painted by only one painter. Thus, the painter (the "one") is related to the paintings (the "many").
question
many to many relationship
answer
o Many-to-many (M:N) relationship: An employee may learn many job skills, and each job skill may be learned by many employees.
question
one to one relationship
answer
o One-to-one (1:1) relationship: A retail company's management structure may require that each of its stores be managed by a single employee. In turn, each store manager, who is an employee, manages only a single store.
question
constraint
answer
- A restriction placed on the data. Constraints are important because they help to ensure data integrity. Constraints are normally expressed in the form of rules. For example: o An employee's salary must have values that are between 6,000 and 350,000. o A student's GPA must be between 0.00 and 4.00. o Each class must have one and only one teacher.
question
table/relation
answer
- Think of a relation (sometimes called a table) as a matrix composed of intersecting rows and columns. Each row in a relation is called a tuple. Each column represents an attribute. -RELATIONS TRANSLATE INTO DATA
question
data integrity
answer
- Defined as the condition in which all of the data in the database are consistent with the real-world events and conditions. In other words, data integrity means that: o Data are accurate—there are no data inconsistencies. o Data are verifiable—the data will always yield consistent results
question
Business rules
answer
o A brief, precise, and unambiguous description of a policy, procedure, or principle within a specific organization. o help to create and enforce actions within that organization's environment o Know what they are and where they are derived from -- communication rule between the business and the designers
question
Viewing data logically vs. physically
answer
- In short, the relational model enables you to view data logically rather than physically. - The practical significance of taking the logical view is that it serves as a reminder of the simple file concept of data storage. - Logical simplicity tends to yield simple and effective database design methodologies.
question
Noun/verbs in business rules?
answer
o A noun in a business rule will translate into an entity in the model o A verb (active or passive) associating nouns will translate into a relationship among the entities
question
Data types
answer
o Logical: can only have true or false (yes or no) values -- 2 values o Character: can contain any character or symbol not intended for mathematical manipulation -- aka text or string data o Date: contain calendar dates stored in a special format known as the Julian date format o Numeric: data on which you can perform meaningful arithmetic procedures
question
Determinants
answer
- Any attribute in a specific row whose value directly determines other values in that row
question
Functional dependence
answer
- Can be defined most easily this way: the attribute B is functionally dependent on A if A determines B. More precisely: o The attribute B is functionally dependent on the attribute A if each value in column A determines one and only one value in column B.
question
Key Attribute
answer
Any attribute that is part of a key
question
Super Key
answer
any key that uniquely identifies each row. In short, the superkey functionally determines all of a row's attributes. o The PK is a super key o But the Super Key doesn't have to be a PK
question
candidate key
answer
can be described as a superkey without unnecessary attributes, that is, a minimal superkey. Using this distinction, note that the composite key
question
Primary Key
answer
o A candidate key selected to uniquely identify all other attribute values in any given row o Cannot contain null entries o Each table must have a primary key o a primary key is a superkey as well as a candidate key o identify primary keys by underlying
question
foreign key
answer
an attribute whose values match the primary key values in the related table. More specifically, the primary key of one table appears as the foreign key in a related table.
question
Secondary Key
answer
a key that is used strictly for data retrieval purposes -. In that case, the primary key is the customer number; the secondary key is the combination of the customer's last name and phone number. Keep in mind that a secondary key does not necessarily yield a unique outcome
question
Composite Key
answer
it might take more than a single attribute to define functional dependence; that is, a key may be composed of more than one attribute
question
null value
answer
- In SQL, refers to the absence of an attribute value (unknown/missing). Note: a null is NOT blank.
question
Why are keys important?
answer
They can uniquely identify any given records
question
Referential integrity
answer
- Means that if the foreign key contains a value, that value refers to an existing valid tuple (row) in another relation. - The Foreign Key must match the Primary Key (database design rule #2)
question
ERD:
answer
diagramming techniques and conventions (i.e., how relationships are illustrated)
question
Domain
answer
o The column's range of permissible values o Because the STU_GPA values are limited to the range 0-4, inclusive, the domain is [0,4]
question
Simple
answer
- an attribute that cannot be subdivided - o For example, age, sex, and marital status would be classified as simple attributes. To facilitate detailed queries, it is wise to change composite attributes into a series of simple attributes.
question
single
answer
- has only 1 value -o For example, a person can have only one Social Security number, and a manufactured part can have only one serial number. Keep in mind that a single-valued attribute is not necessarily a simple attribute.
question
Cardinality
answer
: expresses the minimum and maximum number of entity occurrences associated with one occurrence of the related entity. In the ERD, cardinality is indicated by placing the appropriate numbers beside the entities, using the format (x,y).
question
Connectivity
answer
used to describe the relationship classification
question
Optionality
answer
used to label any condition in which one or more optional relationships exist
question
Composite Attribute
answer
- attribute that has different data (solution: NEW ATTRIBUTE) - o An attribute that can be further subdivided to yield additional attributes. For example, the attribute ADDRESS can be subdivided into street, city, state, and zip code. Similarly, the attribute PHONE_NUMBER can be subdivided into area code and exchange number
question
Multivalued Attribute
answer
-attributes that can have many values -o For instance, a person may have several college degrees, and a household may have several different phones, each with its own number. Similarly, a car's color may be subdivided into many colors (that is, colors for the roof, body, and trim).
question
Existence-Dependent
answer
if it can exist in the database only when it is associated with another related entity occurrence. In implementation terms, an entity is existence-dependent if it has a mandatory foreign key—that is, a foreign key attribute that cannot be null.
question
Existence-Independent
answer
If an entity can exist apart from all of its related entities; that entity is referred toas a strong entity or regular entity.
question
In almost all of your work , a key (aka identifier) would contain 1 attribute?
answer
In almost all of your work , a key (aka identifier) would contain 1 attribute
question
Unary Relationship
answer
- exists when an association is maintained within a single entity o Ex: A COURSE is a prerequisite to another COURSE
question
Binary Relationship
answer
-exists when two entities are associated. o Ex: PROFESSOR teaches COURSE
question
Ternary Relationship
answer
-exists when three entities are associated o Ex: A CONTRIBUTOR contributes money to a FUND from which a RECIPIENT receives money
question
Type of entities?
answer
o Strong: exists by itself, - - existent independent -- aka regular o Weak: exists if the PK of the related entity does not contain a PK component of the parent entity -- aka non-identifying relationship -- Associative Entity: used to implement a M:N relationship between two or more entities. This associative entity (also known as a composite or bridge entity) is composed of the primary keys of each of the entities to be connected
question
derived attributes
answer
o value that is derived from another attribute o 2 ways to have a derived attribute: 1. can either be created on the fly by an algorithm 2. stored in the database
question
2 Types Of Relationships?
answer
o Strong (solid line) o Weak (dashed line)
question
UNION
answer
-: The UNION statement combines rows from two or more queries without including duplicate rows o the UNION statement combines the output of two SELECT queries
question
UNION ALL
answer
-If SaleCo's management wants to know how many customers are on both the CUSTOMER and CUSTOMER_2 lists, a UNION ALL query can be used to produce a relation that retains the duplicate rows. o Like the UNION statement, the UNION ALL statement can be used to unite more than just two queries
question
PROJECT
answer
PROJECT yields all values for selected attributes. In other words, PROJECT yields a vertical subset of a table.
question
SELECT
answer
-yields values for all rows found in a table that satisfy a given condition -in other words, SELECT yields a horizontal subset of a table
question
INTERSECT
answer
yields only the rows that appear in both tables. As was true in the case of UNION, the tables must be union-compatible to yield valid results. For example, you cannot use INTERSECT if one of the attributes is numeric and one is character-based.
question
DIFFERENCE
answer
yields all rows in one table that are not found in the other table; that is, it subtracts one table from the other.
question
PRODUCT
answer
yields all possible pairs of rows from two tables—also known as the Cartesian product. Therefore, if one table has six rows and the other table has three rows, the PRODUCT yields a list composed of 6 × 3 = 18 rows.