SQL Server Administration and Query Fundamentals

Test your knowledge of SQL Server administration features including mirroring, clustering, indexes, authentication, recovery models, and fundamental SQL query syntax

20 Questions Published

Questions

Question 1 True/False

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

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

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.
Question 3 True/False

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

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

fill up:A LEFT JOIN Return all rows from the _________ table, even if there are no matches in the __________ table

  1. left,right
  2. right,left
  3. left,left
  4. right,right
Question 5 Multiple Choice (Single Answer)

Fill Up: The UNION operator selects only distinct values by default. To allow duplicate values, use __________

  1. UNION ENTIRE
  2. FULL UNION
  3. UNION ALL
  4. none of the above
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

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
Question 8 Multiple Choice (Single Answer)

An application program containing query with UR

  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
Question 9 Multiple Choice (Multiple Answers)

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
Question 10 Multiple Choice (Multiple Answers)

What command(s) you have to execute to know the processes running inside SQL server.

  1. Sp_helpdb
  2. sp_helpprocess
  3. sp_who2
  4. select * from sys.sysprocesses
Question 11 Multiple Choice (Multiple Answers)

On which port does SQL server runs.

  1. 1433
  2. 1434
  3. 1432
  4. 1435
Question 12 Multiple Choice (Multiple Answers)

Wchich recovery model should database be in for database mirroring to be configured on it

  1. Bulk logged
  2. Half
  3. Full
  4. Simple
Question 13 Multiple Choice (Multiple Answers)

What are the modes of authentication in SQL server database.

  1. Builtin/Administrator
  2. Windows authentication
  3. Mixed mode
  4. SQL authentication
Question 14 Multiple Choice (Multiple Answers)

What is process to truncate a transaction log in SQL server

  1. Fire truncate command
  2. Backup the transaction log
  3. Backup the database
  4. Logs cannot be truncated in SQL Server
Question 15 Multiple Choice (Multiple Answers)

Mark all the indexes which are their in SQL server

  1. Bit Map
  2. clustered
  3. Non clustered
  4. filter
  5. covering
  6. Composite
Question 16 Multiple Choice (Multiple Answers)

How many types of system database are therand which database stores information about jobs running on the SQL server

  1. 4,Model
  2. 4,MSDB
  3. 5,MSDB
  4. 5,Master
Question 17 Multiple Choice (Multiple Answers)

Waht is page size and Extent size in SQL server

  1. 8,64 MB
  2. 8,64 KB
  3. 16,64 KB
  4. 10,86 MB
Question 18 Multiple Choice (Multiple Answers)

What is view in sql server database

  1. Logical form of table
  2. Physical view of table
  3. Logical view of table
  4. View are thoes which are created on Stored procedure
Question 19 Multiple Choice (Multiple Answers)

What are HA Options in SQL server 2005 database.

  1. Data Guard
  2. Clustering
  3. Mirroring
  4. Transaction log shipping
  5. RAC
Question 20 Multiple Choice (Multiple Answers)

Which edition of SQL server supports Asynchronous mirroring.

  1. Workgroup
  2. Express
  3. Standard
  4. Enterprise