Showing posts with label Database. Show all posts
Showing posts with label Database. Show all posts

What is the oldest data model?

What is the oldest data model?





[A]
Network Data Model
[B]
Flat File Data Model
[C]
Relational Data Model
[D]
Hierachical Data Model




Answer: A

Look at the following data for table R:

Look at the following data for table R:

A B C
1 1 2
1 1 2
1 1 3
Choose all correct answers


[A]
R is not a relation
[B]
R is a relation
[C]
R has no key



Answer: B

DBMS stands for what?

DBMS stands for what?



[A]
Database Managing Systems
[B]
Database Management System
[C]
Database Manage System
[D]
Database Manageable System




Answer: B

Given relations Movies(title, year, length, genre. studioName. producer#). MovieExec(name. address. cert#). and Studio(name. address. presC#). Suppose we have the materialized view that finds the name -

Given relations Movies(title, year, length, genre. studioName. producer#). MovieExec(name. address. cert#). and Studio(name. address. presC#). Suppose we have the materialized view that finds the name -

ofthe producer of a given movie as follows:
CREATE MATERIALIZED VIEW MovieProd AS
SELECT title, year, name
FROM Movies. MovieExec
WHERE producer# - cert#
Which of the following modification will affect the MovieProd materialized view?

[A]
Insert a new tuple into Studio
[B]
Delete a tuple from Studio
[C]
Insert a new tuple into Movies or delete a tuple from Movies
[D]
None of the others




Answer: C

Select the right statement

Select the right statement



[A]
All of the others
[B]
Every constraint has a name. If we don't define constraint's name explicitly, then DBMS automatically generates a name for it
[C]
We can create constraint on a tuple as a whole.
[D]
We can create constraint on a single attribute



Answer: A

Choose an incorrect statement

Choose an incorrect statement



[A]
None of the others
[B]
Database is created and maintained by a DMBS
IC]
Database is a collection of information that exists over a long opened of time
[D]
Database is a collection of data that is managed by a DBMS




Answer: A

Four characteristics of transactions are

Four characteristics of transactions are



[A]
None of the others
[B]
Read uncommitted, Read committed, Repeatable read, Serializable
[C]
Atomicity. Isolation. Concurrency. Durability
[D]
Atomicity. Isolation. Consistency. Durability




Answer: D

Choose the right statement

Choose the right statement




[A]
The action associated with the trigger executes no matter what the condition is hold or not
[B]
Triggering events do not support INSERT and DELETE.
[C]
All of the others.
[D]
When the trigger is awakened, it tests a condition. If the condition is satisfied, the action associated with the trigger is executed.





Answer: D

Choose right answer(s).

Choose right answer(s).



[A]
NULL value is unknown, inapplicable, or withheld
[B]
Comparisons with NULL values will return UNKNOWN
[C]
Arithmetic operators on NULL values will return a NULL value
[D]
All of other




Answer: D