Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
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


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





DBMS Viva Question and Answers
Define SQL?
Structured query language
is the standard command set used to communicate with therelational database management system.
Define Dbms?A Database Management system consists of a collection of interrelated data and set of programs to access that data.
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.
State the different between Security and Integrity?
is a protection from malicious attempts to steal or modify data.
constraints guard against accidental damage to the database, by ensuribg thatauthorized changes to the database do not result in a loss of data consistency.
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.
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.
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.
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.
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.
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.
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.
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.
Define SubQuery?
Nesting of Queries one within the other is called as a Subquery.
A table can have only one primary key.
What are the different types of subquery?
Single row subquery
Multiple row subquery
Correlated row subquery
What are the different types of replication?The SQL Server 2000-supported replication types are as follows
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.
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.
Define Sequence?A Sequence is a database object that can be used to provide very quick generation of unique
Define Joins?A Join combines columns and data from two or more tables (and in rare cases, of one tablewith itself).
What are the types of Joins?
Equi joins
Cartesian Joins
Outer Joins
Self Joins.
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.
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.
What are three SQL keywords used to change or set someone's permissions?GRANT, DENY, and REVOKE
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.
Define data model?Underlying the structure of the database is called as data model.
What is an Entity?It is a 'thing' in the real world with an independent existence.
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.
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

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