Sei sulla pagina 1di 4

1.

Let R={a,b,c,d,e,f,g,h,I,j} be a relation scheme with the following


dependencies.what is the key of R?

(a) ab (b) cd (c) ac (d) ad

2. If a relation schema is in BCNF,then it is also in

(a) 1NF (b) 2NF (c) 3NF (d) none of these

3. Explain the properties of relational decomposition.

4. Explain superkey,primary key,candidate key,composite key,foreign key.

5.Explain about normal forms.

6. State ACID rules.

7. What are spurial tuples.

8. SQL Is a

a)comprehensive database language

b)DDL

c)DML

c)ALL

9. Removing redunt functional dependincies for a set f is called ………….

10. The EXIT function in sql is used tp

a)to check the result of a query is correct or not

b) to check the result of a nested query is correct or not

c) to check the result of a correlated nested query is correct or not

11. Which are aggregate function in sql.

12. In SQL, the ____________ keyword is used to indicate which fields to include in the
data to display.
a)FROM
b)WHERE
c) SELECT
d)INCLUDE
13. The count function is a type of summary calculation. It calculates:
a)The total of all values in a specified field
b)The number of records with an entry in a specified field
c)The average of values in a field
d)The number of times the data in a field has been requested through a query

14. Which one of the following is not a Normal Forms (Normalization) rule with
regards to the Relational Model?

a)All fields within a table must relate to or directly describe the


Primary Key.
b)Repeating Groups must be eliminated from tables
c)Fields that can contain non-numeric data are to be removed and placed
within their own tables with an associated Primary key
d)Redundant data is to be eliminated by placing the offending fields in
another table

15. Which command will delete all data from a table and will not write to
the rollback segment?

A) DROP
B) DELETE
C) CASCADE
D) TRUNCATE

- The TRUNCATE command doesn't write user data to rollback segments.

16. Difference between a "where" clause and a "having" clause.?

17. What is a SQL view?

18.which of the following is true about CASCADE constraint?

a) cascade constraints describes about the parent-child relationship between


tables.

b). When this clause is used with the DROP command, a parent table can be
dropped even when a child table exists.

c) , when dropping a table , will remove table and all its definitions (including
constraints)

d)ALL

19. We have two tables: PRODUCT(ProdDesc, Price, VCode)

and VENDOR (VCode, VName, VContact, VAreaCode, VPhone)


The command to join the PRODUCT and VENDOR tables using an INNER JOIN
is:

a) SELECT ProdDesc, Price, VName, VAreaCode, VPhone

FROM PRODUCT, VENDOR

WHERE PRODUCT.VCode <> VENDOR.VCode;

ORDER BY Price;

b) SELECT ProdDesc, Price, VContact, VPhone

FROM PRODUCT, VENDOR

WHERE PRODUCT.VCode = VENDOR.VCode;

ORDER BY Price;

c) SELECT ProdDesc, Price, VName, VAreaCode, VPhone

FROM PRODUCT, VENDOR

WHERE PRODUCT.VCode <= VENDOR.VCode;

ORDER BY Price;

d) SELECT ProdDesc, Price, VName, VContact, VPhone

FROM PRODUCT, VENDOR

WHERE PRODUCT.VCode => VENDOR.VCode;

ORDER BY Price;

20) What are constraints? Explain different types of constraints.

21) Which of the following describes the meaning of the term Referential Integrity?

A) When a Primary/Foreign Key relationship exists between two tables,


Referential Integrity forces the Database Management System to test
that all Fields are entered properly.
B) When a Primary/Foreign Key relationship exists between two tables,
Referential Integrity forces the Database Management System to test
that the entry into the Foreign Key field already exists in the related
Primary Key Field.
C) When a Primary/Foreign Key relationship exists between two tables,
Referential Integrity forces Microsoft Access to place a 1 to Many
relationship between the two tables.
D) When a Primary/Foreign Key relationship exists between two tables,
Referential Integrity forces the Database Management System to test
that DataTypes (CHAR, INTEGER) values are correctly entered.

22) Explain Normalization and Denormlization.

23) What is the difference between static and dynamic SQL?

24). Explain the ALGORITHMS FOR RELATIONAL DATABASE SCHEMA DESIGN

25)Explain the informal guidelines for relation schemas.

Potrebbero piacerti anche