SQL/ Transactions / Data Integrity

Descripción

SQL/ Transactions / Data Integrity
Brandon Gagon
Test por Brandon Gagon, actualizado hace más de 1 año
Brandon Gagon
Creado por Brandon Gagon hace alrededor de 7 años
50
0
1 2 3 4 5 (0)

Resumen del Recurso

Pregunta 1

Pregunta
Which of the following is a benefit of using a DBMS?
Respuesta
  • They provide full security to data using private/public key encryption
  • They create automatic backups
  • They help create an environment for end users to have access to more data
  • They provide seamless Internet access to database data

Pregunta 2

Pregunta
The hierarchical database model is based on a ____.
Respuesta
  • tree structure
  • lack of a parent segment
  • lack of a child segment
  • matrix

Pregunta 3

Pregunta
Because an RDBMS hides the system's complexity from the user/designer, ____.
Respuesta
  • it does not exhibit data independence
  • it does not exhibit structural independence
  • data management is easier
  • data management is very difficult

Pregunta 4

Pregunta
The ERD is used to graphically represent the ____ database model.
Respuesta
  • condensed
  • physical
  • logical
  • conceptual

Pregunta 5

Pregunta
The property of ____ enables an entity subtype to inherit the attributes and relationships of the supertype.
Respuesta
  • subtype discriminator
  • inheritance
  • specialization hierarchy
  • entity supertype

Pregunta 6

Pregunta
At the implementation level, the supertype and its subtype(s) depicted in the specialization hierarchy maintain a ____ relationship.
Respuesta
  • none
  • 1:1
  • 1:M
  • M:N

Pregunta 7

Pregunta
Which command would be used to delete the table row where the P_Code = '2238/QPD'?
Respuesta
  • DELETE FROM PRODUCT WHERE P_CODE = '2238/QPD';
  • REMOVE FROM PRODUCT WHERE P_CODE = '2238/QPD';
  • ERASE FROM PRODUCT WHERE P_CODE = '2238/QPD';
  • ROLLBACK FROM PRODUCT WHERE P_CODE = '2238/QPD';

Pregunta 8

Pregunta
Which command is used to select partial table contents?
Respuesta
  • SELECT <column(s)> FROM <Table name> WHERE <Item>;
  • LIST <column(s)> FROM <Table name> WHERE <Conditions>;
  • SELECT <column(s)> FROM <Table name> WHERE <Conditions>;
  • LIST<column(s)> FROM <Table name> WHERE <Item>;

Pregunta 9

Pregunta
Which query will output the table contents when the value of V_CODE is equal to 21344?
Respuesta
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE <> 21344;
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE <= 21344;
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE = 21344;
  • SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE FROM PRODUCT WHERE V_CODE => 21344;

Pregunta 10

Pregunta
What is the command used to list the P_CODE, P_DESCRIPT, P_INDATE, and P_PRICE fields from the Product table in ascending order by P_PRICE?
Respuesta
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT SEQUENCE BY P_PRICE;
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT LIST BY P_PRICE;
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT ORDER BY P_PRICE;
  • SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE FROM PRODUCT ASCENDING BY P_PRICE;

Pregunta 11

Pregunta
The basic SQL aggregate function that gives the total of all values for a selected attribute in a given column is ____.
Respuesta
  • COUNT
  • MIN
  • MAX
  • SUM

Pregunta 12

Pregunta
____ is used to tally the number of specific "values" of an attribute.
Respuesta
  • SUM
  • TOTAL
  • COUNT
  • ADD

Pregunta 13

Pregunta
UPDATE tablename ***** [WHERE conditionlist]; What command replaces the ***** in the above statement?
Respuesta
  • SET columnname = expression
  • columnname = expression
  • expression = columnname
  • LET columnname = expression

Pregunta 14

Pregunta
When using a(n) ____ join, only rows that meet the given criteria are returned.
Respuesta
  • full
  • inner
  • outer
  • set

Pregunta 15

Pregunta
What is the syntax for a left outer join?
Respuesta
  • SELECT column-list FROM table1 OUTER JOIN table2 LEFT WHERE join-condition
  • SELECT column-list FROM table1 LEFT [OUTER] JOIN table2 ON join-condition
  • SELECT column-list WHERE LEFT table1 = table 2
  • SELECT column-list FROM table1 LEFT table2 [JOIN] WHERE join-condition

Pregunta 16

Pregunta
In subquery terminology, the first query in the SQL statement is known as the ____ query.
Respuesta
  • outer
  • left
  • inner
  • base

Pregunta 17

Pregunta
In a subquery, which query is executed first?
Respuesta
  • leftmost
  • rightmost
  • innermost
  • outermost

Pregunta 18

Pregunta
Creating the conceptual design, selecting DBMS software, creating the logical design, and creating the physical design are part of the ____ phase.
Respuesta
  • database initial study
  • database design
  • implementation and loading
  • testing and evaluation

Pregunta 19

Pregunta
Which of the conceptual design steps defines entities, attributes, and relationships?
Respuesta
  • Database analysis and requirements
  • Entity relationship modeling and normalization
  • Data model verification
  • Distributed database design

Pregunta 20

Pregunta
What is the primary objective of database design?
Respuesta
  • To create the most efficient database possible
  • To create complete, normalized, nonredundant, and fully integrated conceptual, logical, and physical database models
  • To create the fastest queries
  • To be able to add data quickly

Pregunta 21

Pregunta
The most common algorithms for concurrency control are locks, ____ stamping, and optimistic methods.
Respuesta
  • date
  • time
  • hour
  • minute

Pregunta 22

Pregunta
____ requires that all operations of a transaction be completed.
Respuesta
  • Specificity
  • Atomicity
  • Durability
  • Time Stamping

Pregunta 23

Pregunta
The ____ establishes the order in which the operations within concurrent transactions are executed.
Respuesta
  • transaction log
  • timer
  • lock manager
  • scheduler

Pregunta 24

Pregunta
When is the implicit beginning of a transaction?
Respuesta
  • When the database is started
  • When a table is accessed for the first time
  • When the first SQL statement is encountered
  • When the COMMIT command is issued

Pregunta 25

Pregunta
A(n) ____ phase in a two-phase lock is when a transaction releases all locks and cannot obtain any new lock.
Respuesta
  • growing
  • shrinking
  • locking
  • unlocking

Pregunta 26

Pregunta
What is a consistent database?
Respuesta
  • One in which all tables have foreign keys
  • One in which all data integrity constraints are satisfied
  • One in which all tables are normalized
  • One in which all SQL statements only update one table at a time

Pregunta 27

Pregunta
A transaction acquires a ____ prior to data access.
Respuesta
  • grain
  • timestamp
  • lock
  • key

Pregunta 28

Pregunta
Changes are permanently applied to the database during the ____ phase of a transaction.
Respuesta
  • commit
  • write
  • input
  • output

Pregunta 29

Pregunta
The phenomenon of ____ occurs when two transactions, T1 and T2, are executed concurrently and the first transaction (T1) is rolled back after the second transaction (T2) has already accessed the uncommitted data—thus violating the isolation property of transactions.
Respuesta
  • lost updates
  • uncommitted data
  • transaction failure
  • inconsistent retrieval

Pregunta 30

Pregunta
____ occur when a transaction calculates some summary (aggregate) functions over a set of data while other transactions are updating the data.
Respuesta
  • lost updates
  • uncommitted data
  • transaction failures
  • inconsistent retrievals

Pregunta 31

Pregunta
The scheduler facilitates data ____ to ensure that two transactions do not update the same data element at the same time.
Respuesta
  • durability
  • isolation
  • atomicity
  • serializability

Pregunta 32

Pregunta
Which is not a DML statement?
Respuesta
  • CREATE TABLE
  • SELECT
  • INSERT
  • DELETE

Pregunta 33

Pregunta
What feature is a DDBMS disadvantage?
Respuesta
  • Data is located near the "greatest demand" site
  • Growth facilitation
  • Reduced operating cost
  • lack of standards

Pregunta 34

Pregunta
What feature is a DDBMS advantage?
Respuesta
  • Greater difficulty in managing the data environment
  • Less danger of a single-point failure
  • Increased training cost
  • Complexity of management and control

Pregunta 35

Pregunta
____ distributed database systems integrate different types of centralized DBMSs over a network.
Respuesta
  • Homogeneous
  • Heterogeneous
  • Fully homogeneous
  • Fully heterogeneous

Pregunta 36

Pregunta
____ transparency allows a transaction to update data at several network sites.
Respuesta
  • Transaction
  • Distribution
  • Failure
  • Performance

Pregunta 37

Pregunta
____ transparency ensures that the system will continue to operate in the event of a node failure.
Respuesta
  • Transaction
  • Distribution
  • Failure
  • Performance

Pregunta 38

Pregunta
The ____ contains the description of the entire database as seen by the database administrator.
Respuesta
  • distributed global dictionary
  • distributed data dictionary
  • distributed global schema
  • distributed data schema

Pregunta 39

Pregunta
____ query optimization means that the DDBMS finds the most cost-effective access path without user intervention.
Respuesta
  • Static
  • Dynamic
  • Automatic
  • Commit

Pregunta 40

Pregunta
____ query optimization takes place at execution time.
Respuesta
  • Automatic
  • Static
  • Manual
  • Dynamic
Mostrar resumen completo Ocultar resumen completo

0 comentarios

There are no comments, be the first and leave one below:

Similar

ALGEBRA,TRIGONOMETRIA Y GEOMETRIA ANALITICA
andreitadulcey77
el colapso del mundo medieval
yenivane29
Que compuestos quimicos inorganicos se encuentran en:
Marcelo Rios Vega
MAPAS CONCEPTUALES DIGITALES
Ana Maria Orozco
CONTRATACION E INDUCCION DE PERSONAL
lauraga04
Estructura física y lógica de las computadoras
mauriciofrog
HORARIO DE ESTUDIO (SEMANAL)
Vaaanesa1703
Tecnologías de la información y la comunicación
Jocelyn Glover
LOS PRECIOS
Angela Guerrero
TÍTULO DE LA LECTURA
Senaju Perú