Flashcards
Info Retrieval Mid Term
Flashcards do conjunto (200)
- 1Redundancy wastes space because you are storing different types of data in the same place.False
- 2When you need to change data, redundancy makes your changes more cumbersome and time-consuming.True
- 3An entity is also defined as an attribute.Flase
An entity is a person, place, object, event, or idea for which you want to store and process data.
Each entity has its own table.
The attributes of an entity become the columns in the table. An attribute is a characteristic or property of an entity. - 4An attribute is a characteristic or property of an entity.True
Attributes describe and provide details about entities - 5An attribute is known as a row in most databases.False.
Rows are commonly known as records, which provide all information about the entity. - 6A database will not only hold information about multiple types of entities, but also information about the relationships among these multiple entities.True,
which is why there is a difference between relational and non-relational database - 7Each table in a database represents two or more entities.False
Each entity has its own table. - 8The relationship between different entities (in different tables) is handled by their common columns.True.
This is why keys become important in defining relationships between tables - 9Software packages, called database management systems, can do the job of manipulating databases for you.True.
- 10Programs created with Visual Basic, Java, Perl, PHP, or C++ can access the database directly, rather than having to access it through the DBMS.False
Many advanced text editors and IDEs have plug-ins that allow developers to access database. - 11To create forms to use with a database you must write a program.Flase
There must be a way for user to interact with the DBMS. This can done using languages like: Java, Python, JavaScript, and PHP. - 12Sharing data is one advantage of database processing.True
- Data sharing leads to larger pools of data that can be collected and maintained. - 13An advantage of using the database approach to processing is that it facilitates Consistency.True
The database approach to processing offers nine clear advantages (PG 13) - 14A DBA can assign passwords to prevent unauthorized users from accessing the data.True
A DBA can manage users and create policies - 15There is a greater impact of failure in a nondatabase, file-oriented system.False //Page 16
In a nondatabase, file-oriented system, each user has a completely separate system; the failure of any single user’s system does not necessarily affect any other user. On the other hand, if several users are sharing the same database, a failure for any one user that damages the database in some way might affect all the other users. - 16Storing the same data in more than one place is called ____.Redundancy
- 17A(n) ____ is also called a field or column in many database systems.Attribute
- 18. A(n) ____ is a person, place, object, event, or idea for which you want to store and process data.Entity
- 19A(n) ____ is the computer counterpart to an ordinary paper file you might keep in a file cabinet or an accounting ledger.Record
- 20The ____ of an entity become the columns in the database table.Attribute
- 21Unlike a typical data file, a database can store information about multiple ____.Entities
- 22A visual way to represent a database is with a(n) ____.View
- 23Popular ____ include Access, Oracle, DB2, MySQL, and SQL Server.Relational Databases
- 24During the ____ process, a database expert determines the structure of the required database.Database Design
- 25____ are screen objects used to maintain, view, and print data from a database.Forms
- 26. An integrity constraint is a rule that ____.data must follow in the database
- 27A database has ____ if the data in it satisfies all established integrity constraints.Integrity
- 28____ is the prevention of unauthorized access to the database.Security
- 29A(n) ____ frees programmers who write database access programs from having to engage in mundane data manipulation activities, such as adding new data and deleting existing data.DBMS
- 30A person who is in charge of a database within an organization is often called the database ___Database Admin
- 31A good ____ should provide an opportunity for users to incorporate integrity constraints when they design the database.DBA
- 32A DBMS lets you assign users to ____.DBMS lets you assign users to groups
- 33____ is a property that lets you change the structure of the database without requiring you to change the programs that access the database.Data Independence
- 34One disadvantage of a database system isLarger file size
Increased complexity
Greater impact of failure
More difficult recovery - 35In a(n) ____________________ relationship between two entities, each occurrence of the first entity is related to many occurrences of the second entity and each occurrence of the second entity is related to only one occurrence of the first entity.One to many
- 36A program, or collection of programs, through which users interact with a database is known as a(n) _DBMS
- 37In an E-R diagram, ____________________ represent entities.rectangles represent entities
- 38In an E-R diagram, ____________________ represent relationships between connected entities.Line
- 39In an E-R diagram, the ____________________ at the end of a line indicates the “many” part of the one-to-many relationship between two entities.Line with a dot at the end
- 40A group of people in charge of a database within an organization is often called the ____________________.DBAs
- 41The problem of inconsistency in data is a direct result ofredundancy and not providing integrity constraints
- 42Eliminating ____________________ not only saves space but also makes the process of updating data much simpler.redundancy
- 43A good _________________________ has many features that allow users to gain access to data in a database without having to do any programming.DBMS
- 44A database file requires a large amount of disk space and internal __________memory
- 45A relational database handles entities, attributes, and relationships by storing each entity in its own table.True
Each entity is stored in its own table. (PG31) - 46The attributes of an entity become the fields or columns in a tableTrue
The attributes of an entity become the fields or columns in the table - 47Each column in a table should have a unique name, and entries in each column should all “match” this column name.True
Each column in a table should have a unique name, and all entries in each column should be consistent with this column name - 48In a relation, the order of the columns is important.The order in which columns and rows appear in a table should be immaterial.
- 49In a relation, the order of rows is important.In addition, each row should be unique. After all, when two rows in a table contain identical data, the second row does not provide any information that you do not already have. In addition, for maximum flexibility, the order in which columns and rows appear in a table should be immaterial (unimportant under the circumstances; irrelevant.).
- 50A relational database is a collection of relations.True
- 51An unnormalized relation is a table that has more than one row.False
some of the entries contain repeating groups and, thus, are not single-valued. Such a structure is called an unnormalized relation. - 52A column whose value uniquely identifies a given row in the table is the secondary key.False,
that would be the primary key - 53A query is a question represented in a way that the DBMS can recognize and process.True
- 54QBE is a visual approach to writing queries.true
Query-By-Example (QBE)
An approach to writing queries that is very visual. With QBE, users ask their questions by entering column names and other criteria using an on-screen grid, and data appears on the screen in tabular form. (PG33) - 55Access automatically adds double quotation marks around values in the design grid that are formatted as Short Text fields when you run the query or move the insertion point to another cell in the design grid.true
Access automatically adds double quotation marks around the value when you run the query or move the insertion point to another box in the design grid. (PG 37) - 56The comparison operators are +, *, %, and /.False
<, >, =, != - 57The comparison operators are also known as relational operators.true
comparison operator, also called a relational operator (PG 37) - 58In an AND criterion, the overall criterion is true if either of the individual criteria is true.False
T&T = T, T&F=F, F&T=F, F&F=F - 59The concept of grouping means that statistics will be calculated for individual records.True,
functions in combination with grouping, where calculations affect groups of records.
Grouping simply means creating groups of records that share some common characteristic. - 60A relation is a(n) ____.Association between entities
- 61Based on the statement below, which of the following is the primary key? Rep (RepNum, LastName, FirstName, Street, City, State, PostalCode Commission, Rate)RepNum, it is the first listed attribute
- 62When duplicate column names exist in a database and you need to indicate the column to which you are referring,Ture, which is called qualifying the field
- 63Rows are also calledRecords
(Death Row Records) - 64The ____ key of a table is the column or collection of columns that uniquely identifies a given row in that table.Primary Key
- 65The compound criteria (conditions) are created by using ____.AND, OR
- 66Count, Sum, Avg, Max, and Min are a few of the built-in statistics or ____ functions that can be used in a query.Aggregate Function
- 67If you are sorting records by more than one field, the more important field is called the ____.Major sort key
The other is the minor sort key - 68A query that changes data is a(n) ____ query.UPDATE
- 69A ____ query creates a new table using the query results.CREATE TABLE
- 70SQL uses commands to create tables, update tables, and retrieve data from tables.True
- 71You can use the SQL CREATE TABLE command to insert rows into a table.False
You use INSERT statement - 72A valid name for a table might be tbl$Student.False
Some common restrictions placed on table and column names by DBMSs are as follows - 73CHAR data types are numbers without a decimal part.False
- 74Fields will appear in the query results in the order in which they are listed in the SELECT clause.True
- 75In a SELECT statement, the WHERE clause is mandatory.False
- 76Instead of listing all the field names in the SELECT clause, you can use the @ symbol.False
- 77A simple condition includes the field name, a comparison operator, and either another field name or a value.True
- 78There are two versions of the “not equal to” operator: <> and !=.True
Notice that there are two versions of the “not equal to” operator: < > and !¼. - 79When you connect simple conditions using the AND operator, all the simple conditions must be false for the compound condition to be true.False
- 80Preceding a condition by the NOT operator reverses the truth or falsity of the original condition.True
- 81The BETWEEN operator is an essential feature of SQL.False
- 82You can combine values in character fields.True
- 83The IN operator provides a concise way of phrasing certain conditions.True
- 84There is no difference between the COUNT function and the SUM function.False
- 85You can use the GROUP BY clause and the ORDER BY clause in the same SELECT Statement.True
- 86The HAVING clause is to groups what the WHERE clause is to rows.True
- 87When rows are grouped, one line of output is produced for each group.True
- 88A WHERE and a HAVING clause cannot be included in the same query.False
- 89For each pair of tables to be joined, a condition must be included indicating how the tables are related.True
- 90When you use a name containing a space in Access SQL, you must ____.enclose it in square brackets
- 91Many versions of SQL require you to end a command with a ____.Semicolon
- 92The basic form of an SQL retrieval command is ____.SELECT-FROM-WHERE
- 93When used after the word SELECT, the ____ symbol indicates that you want to include all fields in the query results in the order in which you described them to the DBMS when you created the table.*
- 94To use a wildcard, include the ____ operator in the WHERE clause.Like
- 95. In versions of SQL other than Access, the ____ is used as a wildcard to represent any collection of characters.percent sign ( % )
- 96In Access SQL, the ____ is used as a wildcard to represent any individual character.question mark (?)
- 97The ____ function calculates the number of entries in a table.Count
- 98when a subquery is used, ____ is(are) evaluated first.the subquery query
- 99The ____ clause can be used to create groups of records.Group By
- 100When rows are grouped, ____.one line of output is produced for each group
- 101To make changes to existing data in a table, you would use the ____ command.Update
- 102To add new data to a table, use the ____ command.Insert
- 103You can save the results of a query as a table by including the ____ clause in the Query.INTO
- 104Based on the code above, list the number, name, credit limit, and balance for all customers with credit limits that exceed their balances.SELECT CustomerNum, CustomerName, CreditLimit, Balance
FROM Customer
WHERE CreditLimit>Balance ; - 105Based on the code above, list the number, name, and balance of all customers with balances greater than or equal to $2,000 and less than or equal to $5,000.SELECT CustomerNum, CustomerName, Balance
FROM Customer
WHERE Balance BETWEEN 2000 AND 5000 ; - 106Based on the code above, list the number, name, and available credit for all customers with credit limits that exceed their balances.SELECT CustomerNum, CustomerName, CreditLimit-Balance
AS AvailableCredit
FROM Customer
WHERE CreditLimit>Balance ; - 107Based on the code above, list the number, name, and complete address of every customer located on a street that contains the letters “Oxford”.SELECT CustomerNum, CustomerName, Street, City, State, PostalCode
FROM Customer
WHERE Street LIKE "%Oxford%" ; - 108Based on the code above, list the number, name, street, and credit limit of all customers. Order the customers by name within descending credit limit.SELECT CustomerNum, CustomerName, Street, CreditLimit
FROM Customer
ORDER BY CreditLimit
DESC, CustomerName ; - 109Based on the code above, for each sales rep, list the rep number, the number of customers assigned to the rep, and the average balance of the rep’s customers. Group the records by rep number and order the records by rep number.SELECT RepNum, COUNT(*), AVG(Balance)
FROM Customer
GROUP BY RepNum
ORDER BY RepNum ; - 110Based on the code above, list the number and name of all customers that are either represented by sales rep 30 or that currently have orders on file, or both.SELECT CustomerNum, CustomerName,
FROM Customer
WHERE RepNum='30'
UNION
SELECT Customer.CustomerNum, CustomerName,
FROM Customer, Orders
WHERE Customer.CustomerNum=Orders.CustomerNum ; - 111Based on the code above, list the descriptions of all items that are located in Storehouse3 and for which there are more than 20 units on hand.SELECT Description
FROM Item
WHERE Storehouse='3' AND OnHand>20 ; - 112Based on the code above, list the descriptions of all items that are located in Storehouse 3 or for which there are more than 20 units on hand, or both.SELECT Description
FROM Item
WHERE Storehouse='3' OR OnHand>20 ; - 113Based on the code above, list the descriptions of all items that are not in Storehouse 3. Based on the code above, list the descriptions of all items that are not in StorehouseSELECT Description FROM Item WHERE NOT Storehouse='3' ;
- 114Based on the code above, find how many items are in category TOY.SELECT COUNT(*) FROM Item WHERE Category='TOY' ;
- 115Based on the code above, list the complete student table.SELECT * FROM Student ;
- 116Based on the code above, list the name of every student whose postal code is 10113.SELECT FirstName, LastName FROM Student WHERE PostalCode='10113' ;
- 117Based on the code above, find the name of the student whose ID is 1167.SELECT FirstName, LastName FROM Student WHERE StudentID='1167' ;
- 118Based on the code above, change the postal code of the student with ID 11433 to 14455.UPDATE Student SET PostalCode='14455' WHERE StudentID='11433' ;
- 119Based on the code above, delete any row in the OrderLine table in which the item number is MT03.DELETE FROM OrderLine WHERE ItemNum='MT03' ;
- 120Views cannot be used to examine table data.False.
- 121An individual can use a view to create reports, charts, and other objects that show database data.True.
- 122A view is a physical table in the DBMS.False
- 123To create a view in Access, you simply create and then save a query.True
- 124One advantage of using views is that they provide data dependence.False.
- 125One advantage of a view is that different users can view the same data in different ways.True
- 126Indexes can increase the efficiency with which data is retrieved from the database.True
- 127When you create an index whose key has a single field, you have created what is called a single-column index.True
- 128The command DEL INDEX CustList; would remove the index named CustList.False.
The SQL command used to drop (delete) an index that is no longer necessary is DROP INDEX, which consists of the words DROP INDEX followed by the name of the index to drop. - 129The following command will enable Jones to retrieve data from the Customer table, but not to take any other action: GRANT SELECT ON Customer Jones ;False.
The following command will enable user Jones to retrieve data from the Customer table but not take any other action.GRANT SELECT ON Customer TO Jones - 130Referential integrity is specified using the FOREIGN KEY clause in the SELECT command.False
- 131Legal-values integrity is the property that states that no record can exist in the database with a value in the field other than one of the legal values.True
- 132Information about tables in the database is kept in the system catalog.True
- 133A stored procedure is placed on a client computer.False
- 134Access supports stored procedures.False
- 135The ____ command will create an application program's or individual user's picture of the database.CREATE VIEW
- 136A row-and-column subset ____ consists of a subset of the rows and columns in some individual table.View???
- 137To create an index named RepBal with the keys RepNum and Balance and with the balances listed in descending order, the command is ____.CREATE INDEX RepBal ON
Customer (RepNum, Balance DESC) ; ??? - 138The ____ statement will take away user privileges to the database.REVOKE
- 139In Access, a key symbol appears in the row selector of the field that is the ____ key.Primary
- 140To create the primary key clause for the Customer table on the CustomerNum field, the correct statement is ____.PRIMARY KEY (CustomerNum)
- 141To create the primary key clause for the OrderLine table on the OrderNum and ItemNum fields, the correct statement is ____.PRIMARY KEY (OrderNum, ItemNum)
- 142Essentially, setting the value in a given field to ____ is similar to not entering a value in it at all.Null
- 143Which of the following statement fragments will only allow a CreditLimit of $5,000, $7,500, or $15,000?CHECK (CreditLimit IN (5000, 7500, 15000))
- 144The CHECK clause can be included in the ____ command.ALTER TABLE
- 145In SQL, you use the CHECK clause to enforce ____ integrity.Legal-values
- 146A table that is in first normal form is better than one that is in second normal form.False.
4th > 3rd > 2nd > 1st - 147To correct update anomalies in a database, tables must be converted into various types of normal forms.True.
- 148If B is functionally dependent on A, you can also say that B functionally determines A.True
- 149Functional dependencies can be determined by looking at sample data.False
- 150Removal of repeating groups is the starting point in the quest to create tables that are as free of problems as possible.True
- 151In general, when converting a non-first normal form table to first normal form, the primary key will usually include the original primary key concatenated with the key to the repeating group.True
- 152A table that is in first normal form may contain problems that will require you to restructure it.True
- 153If the primary key of a table contains only a single column, the table is automatically in first normal form.False
- 154In a dependency diagram, the arrows below the boxes indicate the normal dependencies.False
- 155Tables that are in second normal form do not contain problems.False
- 156The most recent definition of third normal form is referred to as the Boyce-Codd normal form.True
- 157. The primary key in a table will be a determinant.True
- 158Converting to third normal form always avoids the problems related to dependencies.False
- 159The normalization process used to convert a relation or collection of relations to an equivalent collection of third normal form tables is a crucial part of the database design process.True
- 160By splitting relations to achieve third normal form tables, you create the need to express interrelation constraints.True
- 161Potential problems in the design of a relational database are known as ____.Update anomalies.
- 162The fact that column B is functionally dependent on column A can be written as ____A → B.
- 163If B (an attribute) is functionally dependent on A, we can also say that ____.A functionally determines B.
- 164The ____ is a column (or collection of columns) A such that all other columns are functionally dependent on A and no subcollection of the columns in A has this property.Primary Key.
- 165The definition for ____ also defines a candidate key.Primary Key.
- 166A(n) ____ is a column or collection of columns on which all columns in the table are functionally dependent.Candidate key.
- 167An alternate key is a ____Column that could be a primary key but was not chosen.
- 168A table is in first normal form if it does not contain ____.Repeating groups.
- 169A table that contains a repeating group is called a(n) ____.Unnormalized relation.
- 170If there is more than one possible choice for the primary key, and one of the possibilities is chosen to be the primary key, the others are referred to as ____.Alternate keys.
- 171From all the ____ keys, one is chosen to be the primary key.Candidate.
- 172Which of the following contains a repeating group? Orders (OrderNum, OrderDate, (ItemNum, NumOrdered) ) Orders (OrderNum, ItemNum, NumOrdered ) Orders (OrderNum, OrderDate) Orders (OrderNum, OrderDate, ItemNum, NumOrdered )Orders (OrderNum, OrderDate, (ItemNum, NumOrdered) )
- 173A column is a nonkey column if it is ____.Not a part of the primary key.
- 174Another name for a nonkey column is a ____.Nonkey attribute.
- 17530. Second normal form can be defined as a table that is in first normal form but that contains no ____.Partial dependencies.
- 176The information-level design methodology involves representing the individual user view as a collection of tables, refining them to eliminate any problems, and then merging them into a cumulative design.True
- 177A design that supports all user views is called a constructive design.False
- 178The second step in creating a user view is to represent the user view as a collection of tables.False
- 179The first step in creating a user view is to normalize the tables.False
- 180When provided with a user view or some sort of stated requirement, you must develop a collection of tables that will support it.True
- 181The primary key is a unique identifier.True
- 182The basic relationships among entities are: one-to-many, many-to-many, and one-to one.True.
- 183In a one-to-many relationship, the primary key of the “many” table becomes the foreign key of the “one” table.False
- 184Careful planning in the early stages of the normalization process will usually avoid the need to consider fourth normal form.True
- 185You create a many-to-many relationship by creating a new table whose primary key is the combination of the primary keys of the original tables.True
- 186There are two types of primary keys that you can use in your database design.False
- 187A foreign key is a column or collection of columns in one table that is required to match the value of the primary key for some row in another table, or be null.True
- 188In DBDL, you represent a table by listing all columns and then underlining the primary key.True
- 189In an entity-relationship diagram, rectangles represent foreign keys.False
- 190When you use an E-R diagram to represent a database, it visually illustrates all the information listed in the DBDL.True
- 191In an E-R diagram, a dashed line represents an identifying relationship and a solid line represents a nonidentifying relationship.False.
- 192Nulls are used when a value is either unknown or inapplicable.True.
- 193When you combine third normal form tables, the result will always be in third normal form.False.
- 194The use of an “m” and an “n” in an E-R diagram indicates a many-to-many relationship.True
- 195A weak entity is a column or collection of columns that could have been chosen as a primary key, but was not.False
- 196A set of requirements that is necessary to support the operations of a particular database user is known as a(n) ____.User View.
- 197he properties of the entities you choose as you design the user view will become the ____ in the appropriate tables.Columns
- 198If each employee works in a single department and each department has only one employee, the relationship between employees and departments is ____.One-to-one
- 199A(n) ____ is a primary key that consists of a column that uniquely identifies an entity, such as a person’s Social Security number.Natural Key?
- 200A column that you create for an entity to serve solely as the primary key and that is visible to users is called a(n) ____.Artificial Key.
Informações
- Descrição
- FlashCards sobre Info Retrieval Mid Term , criado por Joshua Arteaga em 09-10-2018.
- Criado por
- Joshua Arteaga
- Visualizações
- 2.068
- Avaliação