1.

In SQL Server, which of the following queries is used to obtain the list of all the employees based on the following:

 

  1. Working in Seattle, Tacoma, and Redmond

  2. Joined between the dates 1st June to 30th July


  3.  
2.

Consider the toys table which has the following columns:

ToyID vToyName CategoryID

Consider the category table which consists of the following columns: |CategoryID|cCategory| | :-: | :-: |

In SQL Server, which of the following queries is used to display the toy names and their respective categories?

3.

Consider the following structure for Toys table:

vToyName mToyRate vToyCategory

In an SQL Server, which of the following queries is used to select the names of all those toys which belongs to the category Racer?

4.

In an SQL Server, which of the following statements is used to add a new user called myuser to the system administrators role?

5.

You have a ContractRecruiter table. You want to display the names of all the contract recruiters whose names start with ‘J’. Which of the following SQL queries will display the task?

6.

In an SQL Server, consider the following table structure:

vFirstName vLastName siTestScore dTestDate

Which of the following queries will you use to create a report displaying the names of candidates and their respective scores who took the test between March 5, 2016, and March 12, 2016?

7.

In an SQL Server, AND, OR, and NOT are __________________________________.

8.

In an SQL Server, which of the statements about a trigger is correct?

9.

In an SQL Server, if you want to create a user-defined table that can be replicated for any new user database, then you should create the table in the ____________________ database.

10.
In an SQL Server, which of the following files is essential for any type of database?
  1. Primary data file
  2. Secondary data file
  3. Transaction Log