Tag: databases

Questions Related to databases

  1. SELECT

  2. DENY

  3. APPLY

  4. UPDATE

  5. None of the above


Correct Option: B

We cannot decide if a server is a linked server by using sys.servers catalog view. True or False?

  1. True

  2. False


Correct Option: B

In the Table employee_Details there are two columns: Employee_Id-Integer[10] and Employee_Name-Char[10],The following select query Select distinct(Employee_Name) from employee_Details where Employee_Id='1232' fails due to:

  1. The field mentioned in the where clause should be one of the columns selected

  2. The distinct function can not be used on a field of type Char

  3. The Integer value mentioned in the where clause should not be enclosed by quotes since it is of integer type.

  4. none of the above.


Correct Option: C

The ORDER BY keyword sort the records in descending order by default.

  1. True

  2. False


Correct Option: B

The following query fails. Select employee_name,employee_id,count() from employee_Details group by employee_id where count()>2; The right format is:

  1. Select employee_name,count() from employee_Details group by employee_id where count()>2;

  2. Select employee_name,employee_id,count() from employee_Details group by employee_id having count()>2;

  3. Select employee_name,employee_id,count() from employee_Details order by employee_id where count()>2;

  4. NONE of THE ABOVE


Correct Option: B

Select * from employee_Details with ur; in the follwoing query UR stands for:

  1. Under Read

  2. neither a,c or d

  3. Uncommitted Read

  4. Uncommitted Ride


Correct Option: C
  1. can read data that has been changed and committed.

  2. can read data that has been changed but is not yet committed.

  3. both a and b

  4. neither a or b


Correct Option: C

Select the right syntax to delete all the rows from the table employee_Details but retain the table :

  1. delete * from employee_Details

  2. delete from employee_Details

  3. truncate table employee_Details

  4. drop table employee_Details


Correct Option: B,C