Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
2Activity
×
0 of .
Results for:
No results containing your search query
P. 1
DBMS Viva Que

DBMS Viva Que

Ratings: (0)|Views: 209|Likes:
Published by ashishsingh2016

More info:

Published by: ashishsingh2016 on Nov 19, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

12/04/2012

pdf

text

original

 
DBMS Viva Question and Answers
1.
Define SQL?
Structured query language
is the standard command set used to communicate with therelational database management system.
2.
Define Dbms?A Database Management system consists of a collection of interrelated data and set of programs to access that data.
3.
What is the purpose of Database systems?A Database Management system provides a secure and survivable medium for the storage andretrieval of data.In the real world, the data is shared among several users and is persistent.
4.
State the different between Security and Integrity?
Security
is a protection from malicious attempts to steal or modify data.
Integrity
constraints guard against accidental damage to the database, by ensuribg thatauthorized changes to the database do not result in a loss of data consistency.
5.
Define Normalisation?Normalisation is an essential part of database design. A good understanding of the semanticof data helps the designer to built efficient design using the concept of normalization.
6.
What are the purpose of Normalisation?
 
Minimize redundancy in data.
 
Remove insert, delete and update anamoly during the database activities.
 
Reduce the need to reorganize data it is modified or enhanced.
7.
Define Primary Key?
 
The primary key is the columns used to uniquely identify each row of a table.
 
A table can have only one primary key.
 
No primary key value can appear in more than one row in the table.
8.
Define Unique Key?Unique key is a one or more column that must be unique for each row of the table.It is similar to primary key. Primary key column will not accept a null. Whereas the uniquekey column will accept a null values.
9.
Define Foreign Key?A foreign Key is a combination of columns with value is based on the primary key valuesfrom another table. A foreign key constraint also known as Referential Integrity Constraint.
10.
Define View?
 
 
 
A View is a database object that is a logical representation of a table.
 
It is derived from a table but has no longer of its own and often may be used in thesame manner as a table.
 
A view is a virtual table that has columns similar to a table.
 
A view does not represent any physical data.
11.
Compare and contrast TRUNCATE and DELETE for a table?Both the truncate and delete command have the desired outcome of getting rid of all therows in a table. The difference between the two is that the truncate command is a DDLoperation and just moves the high water mark and produces a now rollback. The deletecommand, on the other hand, is a DML operation, which will produce a rollback and thustake longer to complete.
12.
What is cursors?Cursor is a database object used by applications to manipulate data in a set on a row-by-rowbasis, instead of the typical SQL commands that operate on all the rows in the set at onetime.
13.
Define SubQuery?
 
Nesting of Queries one within the other is called as a Subquery.
 
A table can have only one primary key.
14.
What are the different types of subquery?
 
Single row subquery
 
Multiple row subquery
 
Correlated row subquery
15.
What are the different types of replication?The SQL Server 2000-supported replication types are as follows
 
Transactional
 
Snapshot
 
Merge
16.
What is User Defined Functions?User-Defined Functions allow to define its own T-SQL functions that can accept 0 or moreparameters and return a single scalar data value or a table data type.
17.
Define Self Join?Self join means joining one table with itself.The self join can be viewed as a join of two copies of the same table.
18.
Define Sequence?A Sequence is a database object that can be used to provide very quick generation of unique
 
numbers.
19.
Define Joins?A Join combines columns and data from two or more tables (and in rare cases, of one tablewith itself).
20.
What are the types of Joins?
 
Equi joins
 
Cartesian Joins
 
Outer Joins
 
Self Joins.
21.
Define Equi Joins?A Equi Join is a join in which the join comparison operator is an equality. When two tablesare joined together using equality or values in one or more columns, they make an Equi Join.
22.
Define Cartesian Join?Joining two tables without a whereclause produces a Cartesian join which combines everyrow in one table with every row in another table.
23.
What are three SQL keywords used to change or set someone's permissions?GRANT, DENY, and REVOKE
24.
What are primary keys and foreign keys?
Primary keys
are the unique identifiers for each row. They must contain unique values andcannot be null. Due to their importance in relational databases, Primary keys are the mostfundamental of all keys and constraints. A table can have only one Primary key.
Foreign keys
are both a method of ensuring data integrity and a manifestation of therelationship between tables.
25.
Define data model?Underlying the structure of the database is called as data model.
26.
What is an Entity?It is a 'thing' in the real world with an independent existence.
27.
What is BCP? When does it used?BulkCopy is a tool used to copy huge amount of data from tables and views. BCP does notcopy the structures same as source to destination.
28.
Explain the use of the by GROUP BY and the HAVING clause?The GROUP BY partitions the selected rows on the distinct values of the column on whichthe group by has been done.The HAVING selects groups which match the criteria specified.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->