0 of 15 questions completed
Questions:
The Exam 70-461 exam is intended for SQL Server database administrators, system engineers and developers with two or more years of experience, who are seeking to validate their skills and knowledge in writing queries.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
0 of 15 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
What will be the possible output of following T-SQL statement?
DECLARE @value sql_variant=’2014-07-21 21:19:01.9414542 +01:00′;
SELECT
CASE WHEN TRY_CONVERT(time,@value) IS NULL THEN ‘Cast failed’
ELSE TRY_CONVERT(time,@value)
END;
TRY_CONVERT() function returns a value cast to the specified data type if the cast succeeds; otherwise, returns null.
Which of the following statement is correct for following T-SQL SET Statement?
SET DATEFIRST 7;
SET DATEFIRST SET statement sets the first day of the week to a number from 1 through 7.
Which of the below statements is true about the T-SQL CREATE TYPE DDL Statement in SQL Server 2012?
CREATE TYPE creates an alias data type or a user-defined type in the current database. The implementation of an alias data type is based on a SQL Server native system type.
What will be the possible output of following T-SQL statement?
SET ARITHABORT OFF;
SET ANSI_WARNINGS OFF;
SET ARITHIGNORE ON;
SELECT 1 / 0 AS DivideByZero;
When SET ARITHABORT or SET ARITHIGNORE is OFF and SET ANSI_WARNINGS is ON, SQL Server still returns an error message when encountering divide-by-zero or overflow errors.
What will be the correct output of following T-SQL statement?
DECLARE @ToFind varchar(50)=null;
DECLARE @ToSearch varchar(100)=’Querying SQL Server 2012 – 1000 Exam questions and answers’;
SELECT CHARINDEX(@ToFind, @ToSearch);
CHARINDEX() function Searches an expression for another expression and returns its starting position if found. Eg: – CHARINDEX ( expressionToFind ,expressionToSearch [ , start_location ] )
What will be the correct output of following T-SQL statement?
CREATE TABLE tbl_Test(Col1 smalldatetime);
SELECT COL_LENGTH(‘tbl_Test’,’Col1′);
DROP TABLE tbl_Test;
COL_LENGTH() function returns the defined length, in bytes, of a column.
Which statement concerning the SPARSE columns in SQL Server 2012 below is INCORRECT?
SPARSE column cannot have a default value.
Which of the below statements is correct about the T-SQL HASH GROUP Query Hint?
Query hints specify that the indicated hints should be used throughout the query. Query hints affect all operators in the statement and are implemented using the OPTION clause.
Which of the following T-SQL clause is used to suppress duplicates in a SELECT statement?
SELECT clause specifies the columns to be returned by the query. DISTINCT statement is used to return only distinct values.
What will be the correct output of following T-SQL statement?
DECLARE @value1 int;
SET @value1 = 2;
SET @value1 |=1;
SELECT @value1;
|= (Bitwise OR EQUALS) operator performs a bitwise logical OR operation between two specified integer values as translated to binary expressions within Transact-SQL statements.
Which of the following is the correct output for the following T-SQL statement?
DECLARE @x int = 20, @y int = 30, @z int = 40;
SELECT IIF ( @y BETWEEN @x AND @z AND @z <= @x, 'TRUE', 'FALSE' );
BETWEEN logical operator specifies a range to test.
What will be the default output of following T-SQL statement?
DECLARE @date datetime2 = ‘2014-01-10 23:00:00’;
SELECT DATEPART(hour, @date);
DATEPART() function returns an integer that represents the specified datepart of the specified date.
You’re planning to modify an existing table called tbl_Patients_History. Your manager has asked you to check the index details on that table. Which of the following system stored procedure you use to retrieve those information?
sp_helpindex lists any indexes on a table, including indexes created by defining unique or primary key constraints defined by a create table or alter table statement.
How can you return all the records from a table named “Employees” sorted descending by the total character length of the “First_Name” and “Last_Name”?
SELECT clause specifies the columns to be returned by the query. The ORDER BY keyword is used to sort the result set. LEN() function Returns the number of characters of the specified string expression
Which statement concerning the common table expression (CTE) in SQL Server 2012 below is INCORRECT?
CTEs can be defined in any functions, stored procedures, triggers or views.