Covid-19 Update!!    We have enabled all courses through virtual classroom facility using Skype or Zoom.    Don't stop learning.    Enjoy Learning from Home.

30% Discount Python        30% Discount Webdesign        30% Discount SEO        30% Discount Angular8        Free SQL Class        Free Agile Workshop       Free HTML Sessions        Free Python Basics

Important DBMS Interview Questions and Answers

Database Interview Questions and answers

1. Define Database.

A fixed collection of figures known as data is called database.

2. What is DBMS?

Database Management Systems (DBMS) are applications designed especially which enable user to influence with other applications.

3. What are the features of Database language?

A database language may also include features like:
  • DBMS-specific Configuration and management of storage engine.
  • Computations to modification of query results by computations, like summing, counting, averaging, grouping, sorting and cross-referencing Constraint enforcement Application Programming Interface.

    4. Define database model.

    A data model conditioned fundamentally how data can be stored, worked and organised and the structure of the database logically is called database model.

    5. Define Normalization.

    Organized data void of inconsistent dependency and sacking within a database is called normalization.

    6. Enlist some commands of DDL.

    They are:
    CREATE:Create is used in the CREATE TABLE statement.
    Syntax is:
    CREATE TABLE [column name] ( [column definitions] ) [ table parameters]
    ALTER: It helps in modification of an existing object of database.
    syntax is:
    ALTER objecttype objectname parameters.
    DROP: It destroys an existing database, index, table or view.
    syntax is:
    DROP objecttype objectname.

    7. Why is group-clause used?

    Group-clause uses aggregate values to be obtain by collecting similar data.

    8. Define Aggregate functions.

    Functions which operate against a collection of values and depart the single value is called aggregate functions

    9. Define Scalar functions.

    Scalar function is depended on the argument given and returns sole value.

    10. What restrictions can you apply when you are creating views?

    Following are the restrictions that are creating views:
  • Only the current database can have views.
  • You are not liable to change any computed value in any particular view.
  • Integrity constants decide the functionality of INSERT and DELETE.
  • Full-text index definitions cannot be applied.
  • Temporary views cannot be created.
  • Temporary tables cannot contain views.
  • No association with DEFAULT definitions.
  • Triggers such as INSTEAD OF is associated with views.

    11. Define “correlated subqueries”.

    A ‘correlated subquery’ is a sort of sub query but correlated subquery is reliant on another query for a value that is returned. In case of execution, the sub query is executed first and then the correlated query.

    12. List the disadvantages of query.

  • No indexes
  • Stored procedures are unnecessarily compiled.
  • Triggers and methods are without SET NOCOUNT ON.
  • Complicated joins making up insufficient written query.
  • Cursors and temporary tables showcase a bad presentation.

    13. What is Executive Plan?

    An executive plan is,Server (SQL) supply collected method or the plan of query execution and used thereafter by following calls.
  • An important feature in relation to presentation enhancement.
  • Data execution plan can be viewed textually or graphically.
  • Complicated joins making up insufficient written query.
  • Cursors and temporary tables showcase a bad presentation.

    14. Define Fragmentation.

    A database feature of server that develop control on data which is stored at table level by the user is called Fragmentation.

    15. Differentiate Nested Loop, Hash Join and Merge Join.

    Nested loop (loop over loop)
    An outer loop within an inner loop is formed contains few entries and then for individual entry, inner loop is individually processed.
    E.g.
    Select col1.*, col2.* from coll, col2 where coll.col1=col2.col2;
    It’s processing takes place in this way:
    For i in (select * from col1) loop
    For j in (select * from col2 where col2=i.col1) loop
    Results are displayed;
    End of the loop;
    End of the loop;
    The Steps of nested loop are:
  • Identify outer (driving) table
  • Assign inner (driven) table to outer table.
  • For every row of outer table, access the rows of inner table.
    Nested Loops is executed from the inner to the outer as:
  • outer_loop
  • inner_loop
  • Hash join
    While joining large tables, the use of Hash Join is preferred.
    Algorithm of Hash Join is divided into:
  • Build: It is a hash table having in-memory which is present on the smaller table.
  • Probe: this hash value of the hash table is applicable for each second row element.
  • Sort merge join
    Two independent sources of data are joined in sort merge join. They presentation is better as differentiate to nested loop when the data volume is big enough but normally it is not good as hash joins.
    The full operation can be divided into parts of two:
    Sort join operation :
    Get first row R1 from input1
    Get first row R2 from input2.
    Merge join operation:
    ‘while’ is not present at either loop’s end.
    if R1 joins with R2
    next row is got R2 from the input 2
    return (R1, R2)
    else if R1 < style=””> next row is got from R1 from input 1
    else
    next row is got from R2 from input 2
    end of the loop

    16. What is Database partitioning?

    Division of logical database into independent complete units for upgrade its management, availability and performance is called Database partitioning.

    17. Define Atomicity and Aggregation.

    Atomicity: It’s an all or none concept which permit the user to be possessed of incomplete transactions to be taken care of. The actions involving incomplete transactions are left undone in DBMS.
    Aggregation: The collected entities and their relationship are aggregated in this model. It is mainly used in expressing relationships within relationships.

    18. Define Entity.

    It can be defined as being a ‘thing’ with an independent existence in the real world.

    19. Define Entity Set.

    Collection of all entries of any particular type of entry in the database is called Entity Set.

    20. What do you mean by Entity type extension?

    Collection of similar entity types into one particular type which is grouped together as an entity set is called Entity type extension.