MS SQL Server 2005 Test
__________ is a container that holds tables, views, procedures, functions and so on.
A table of employees has the following values for its salary field: 10000, 11000, 12000, 10000, 14000, 12000, 13000, 10000, 14000, 10000 What will the following query return? Select distinct (sal...
Columns are called _____________ of a table in a relational model.
Consider the following query: Select name from employees where name like "%_n_" Which names will be displayed?
Consider the following table "Students": Students - - - - - - Name Hobbies John Driving Miller Fishing David Writing Robert ...
Consider the following table structure of employees: empid int(4) deptname varchar(50) salary int(4) Which q...
Consider the following table: Order - - - - - Orderid Customerid Orderdate Comments Select ISNULL (Comments, 'No comments') AS comments From Order What will be the output of the above query?
Consider the following tables: Customers - - - - - - - - Customerid Customername Address Orders - - - - - Orderid Customerid Orderdate Comments What will be the query to fetch Customername and 1s...
Examine the data in the EMPLOYEES table given below: LAST_NAME DEPARTMENT_ID SALARY Allen 10 3000 Miller 20 1500 King 20 ...
How is the following query incorrect? select * from Orders where OrderID = (select OrderID from OrderItems where ItemQty > 50)
SQL SERVER 2005 provides a new feature to enable partitioning of the data in the database. But only those database objects can be partitioned which store data in the database. In accordance with th...
Starting from the slowest, arrange the following operators in the order in which they produce results in "SQL WHERE" query. 1. >, >=, <, <= 2. <> 3. = 4. LIKE
State whether True or False. A User Defined Function 'findsum' is to be created as follows: Create function findsum(@x int, @y int) As Begin Return(@x+@y) End But the SQL SERVER is unable to crea...
State whether True or False. Many-to-One is a type of relationship in RDBMS.
State whether True or False. The 'Having' clause can not be used when there is a 'Where' clause in the statement already.
State whether True or False. The "text" and "ntext" data type can store character based data. These data types can be used in joins.
State whether True or False. The plus (+) and minus (-) operators cannot be used to perform increment/decrement operations on datetime and smalldatetime values.
State whether True or False. Triggers can be created in Assemblies.
State whether True or False. While using the Select query, the IN clause is a better choice than the EXIST clause.
State whether True or False. You can send emails through the Database engine.
The - (Negative) and ~(Bitwise NOT) are examples of the _________ type of operators.
The commands GRANT and REVOKE are examples of :
The table Comments has an auto incremented column called "Commentid" and a "UserComments" column, both of which store the comments of the users visiting the site. What will be the correct query to ...
We are creating Stored Procedure in Database and using "sp_" prefix in its name. Which of the following statements is correct in accordance with the performance of the Stored Procedure execution?
We have a table named "Customer" which has a column named "Customerid" having datatype Integer. We need to fetch the output with column title: 'Customer id is (value of customerid from the table)'....
What exactly is a Foreign key?
What exactly is a Super key?
What exactly is the Full-Text Catalog?
What is the function of "DBCC CHECKDB" command?
What is the maximum storage capacity of XML data type in SQL SERVER 2005?
What is wrong with the following query in accordance with performance? SELECT * FROM [Table_Name] WHERE LOWER(Field_Name) = 'name'
What will be the output of the following SQL query? SET SHOWPLAN_TEXT ON GO SELECT * FROM abcsite.abctable GO
What will the following query do? Delete Orders
Which among the following are the new datatypes introduced in the SQL Server 2005?
Which clause will be used to extract data from Tables A and B having a similar structure but no relation between themselves?
Which command is used to create User defined Data Type in the SQL SERVER 2005?
Which data type in the SQL SERVER 2005 converts itself into the type of data that is inserted into it?
Which edition of the SQL SERVER 2005 will best meet the following scenario? A company has an online shopping website named www.shoppingxyz.com. It also has to handle its line of business portion. ...
Which functions does the following SQL QUERY perform? DBCC CHECKIDENT ('table_name', RESEED, new_reseed_value)
Which is the best method to handle errors and deadlocks?
Which level of data abstraction describes the data that is stored in the database and their corresponding relationships?
Which of the following "insert queries" will be inserted in the XML field? The creation query of the table is: CREATE TABLE Branches(recordID int, description XML)
Which of the following are correct?
Which of the following are not Database Models?
Which of the following are the SQL Transaction statements?
Which of the following clauses are not allowed in a single row sub-query?
Which of the following commands will be used to see the structure of the table named 'salary'?
Which of the following is a database object?
Which of the following is not a Data type in the SQL SERVER 2005?
Which of the following is not a logical operator?
Which of the following is not a Method call of .NET class for Assemblies in the SQL Server?
Which of the following is not a relational operation?
Which of the following is not a type of Database backup in the SQL SERVER 2005?
Which of the following is not an Aggregate function?
Which of the following is the new sample database in the SQL SERVER 2005?
Which of the following mechanisms is used by "ENCRYPTION by passphrase" to encrypt the data in the SQL SERVER 2005?
Which of the following methods is used to backup the Transaction log on to a secondary database in order to backup and recover data in a synchronized manner?
Which of the following operators perform pattern matching?
Which of the following operators will be evaluated first in the following statement? Select (salary+40^2*30/5) from employees
Which of the following SQL queries correctly selects the rows from the table "employees" that have NULL value in the "salary" column?
Which of the following statements is correct?
Which of the following statements is wrong?
Which of the following statements is/are wrong?
Which of the following statements regarding "views" are incorrect?
Which of the following statements regarding Trigger and Stored Procedures is correct?
Which one of the following statements about Indexes is wrong?
Which one of the following statements is correct?
Which one of the following statements regarding "views" is incorrect?
Which query will be used for a particular column of a table, if 'Reading' is to be replaced by 'Writing'?
Why are Joins generally better than the Correlated sub-query?
You have a database named 'marketnikkie', the backup of which is stored at 'D:marketnikkie.bak' location on your server. Due to some electric fluctuations, the database gets corrupt. Which of the ...
You have a table "engineers" with the following table structure: enggid int(4) deptname varchar(50) salary int(4) You want to display the minimum and maxi...
You have a table "engineers" with the following table structure: enggid int(4) name varchar(50) salary int(4) You want to select the top 2 engineers in...
You have a table named 'employees', having the following structure. empid int(4) deptname varchar(50) salary int(4) And a view is created as follows: create view viemployees as select * from empl...
You have a table named "employees" with the following table structure: empid int(4) deptname varchar(50) salary int(4) The following select query is execu...
You have two tables emp_1 and emp_2, having the following data: Table emp_1 Name Date Robert 1/5/2008 John 1/6/2008 Michael 1/7/2008...
You want to select a row using cursors in the table 'qlist'. Which of the following statements DECLARES a cursor 'qselect' to perform the desired operation?