T-SQL LinkedIn Skill Assessment Answer

Here, We see T-SQL LinkedIn Skill Assessment Answer. This assessment test consists 15-20 MCQs to demonstrate your knowledge in your selected skills. MCQs comes from different topics – T-SQL Data Types, Functions, SQL Syntax, Terminology, Writing Queries.

T-SQL LinkedIn Skill Assessment Answer

T-SQL (Transact-SQL) LinkedIn Skill Assessment :-

Q1. Which answer is NOT a type of table index?

  1. nonclustered
  2. unique
  3. heap✔️
  4. hash

Q2. The keywords AND, IN, LIKE, and between all belong to a category called what?

  1. joining operations
  2. linking operations
  3. criteria operations
  4. logical operations✔️

Q3. What is the result of this series of statements?

BEGIN TRY
SELECT 'Foo' AS Result;
END TRY
BEGIN CATCH
SELECT 'Bar' AS Result;
END CATCH
  1. Foo✔️
  2. FooBar
  3. Foo Bar
  4. Bar

Q4. Given these two tables, which query generates a listing showing student names and the department office location where you could reach each student?

  1. SELECT Students.first_name, Students.last_name, Departments.office_location FROM Students, Departments;
  2. SELECT Students.first_name, Students.last_name, Departments.office_location FROM Students JOIN Departments ON Students.department = Departments.department;✔️
  3. SELECT Students.first_name, Students.last_name, Departments.office_location FROM Students JOIN Departments;
  4. SELECT Students.first_name, Students.last_name, Departments.office_location FROM Students ON Students.department = Departments.department;

Q5. What is an example of a DDL command in SQL?

  1. TRUNCATE TABLE
  2. DELETE
  3. MERGE
  4. DROP✔️

Q6. Given the Games table pictured, which query generates the results shown?

  1. SELECT GameType, MaxPlayers, count(*) AS NumberOfGames FROM Games GROUP BY MaxPlayers, GameType ORDER BY MaxPlayers, GameType;
  2. SELECT GameType, MaxPlayers, count(*) AS NumberOfGames FROM Games GROUP BY GameType, MaxPlayers ORDER BY GameType;✔️
  3. SELECT GameType, count(Players) AS MaxPlayers, NumberOfGames FROM Games GROUP BY GameType, MaxPlayers ORDER BY GameType;
  4. SELECT GameType, MaxPlayers, count(*) AS NumberOfGames FROM Games GROUP BY GameType ORDER BY MaxPlayers;

Q7. Which answer is a possible result of the sequence of commands below?

DECLARE @UniqueID uniqueidentifier = NEWID();
SELECT @UniqueID AS Result;
  1. 1
  2. bb261196-66a5-43af-815d-123fc593cf3a✔️
  3. z350mpj1-62lx-40ww-9ho0-4u1875rt2mx4
  4. 0x2400001155F04846674AD4590F832C0

Q8. You need to find all students that are not on the "Chemistry Cats" team. Which query does NOT work for this task?

  1. SELECT * FROM Students WHERE team NOT ‘Chemistry Cats’;✔️

  2. SELECT * FROM Students WHERE team <> ‘Chemistry Cats’;

  3. SELECT * FROM Students WHERE team != ‘Chemistry Cats’;

  4. SELECT * FROM Students WHERE NOT team = ‘Chemistry Cats’;

Q9. You need to write a query that returns all Employees that have a LastName starting with the letter A. Which WHERE clause should you use to fill in the blank in this query?

  1. WHERE LastName = A*
  2. WHERE LastName = LIKE ‘%A%’
  3. WHERE LastName LIKE ‘A%’✔️
  4. WHERE LastName IN (‘A*’)

Q10. Which query shows the first name, department, and team of all students with the two lowest points?

  1. SELECT LIMIT(2) first_name, department, team FROM Students ORDER BY points ASC;
  2. SELECT TOP(2) first_name, deprtment, team FROM Students ORDER BY points DESC;
  3. SELECT TOP(2) WITH TIES first_name, department, team FROM Students ORDER BY points;✔️
  4. SELECT BOTTOM(2) first_name, department, team FROM Students ORDER BY points ASC;

Q11. What is the result of this statement?

SELECT FLOOR(-1234.321)

  1. -1234.3
  2. -1234
  3. -1235✔️
  4. 1234.321

Q12. Which is the best approach to update the last name of the student Donette Figgins to Smith?

  1. UPDATE Students SET last_name = ‘Smith’ WHERE email = ‘[email protected]’;
  2. UPDATE Students SET last_name = ‘Figgins’ WHERE email = ‘[email protected]’;
  3. UPDATE Students SET last_name = ‘Figgins’ WHERE last_name = ‘Smith’ AND first-name = ‘Donette’;
  4. UPDATE Students SET last_name = ‘Smith’ WHERE last_name = ‘Figgins’ AND first-name = ‘Donette’;✔️

Q13. Which of these data types is an approximate numeric?

  1. real✔️
  2. bit
  3. decimal
  4. numeric

Q14. You need to remove all data from a table name Products. Which query fully logs the removal of each record?

  1. TRUNCATE FROM Products *;
  2. DELETE FROM Products;✔️
  3. DELETE * FROM Products;
  4. TRUNCATE TABLE Products;

Q15. What is the result of the following query? SELECT 1 / 2 AS Result;

  1. 0.5
  2. error
  3. 0✔️
  4. 2

Q16. which data type will most efficiently store a person’s age in years?

  1. float
  2. int
  3. tinyint✔️
  4. bigint

Q17. What is the result of this query?

SELECT 'abc\
def' AS Result;
  1. abc\def✔️
  2. abcdef
  3. error
  4. abc def

Q18. To select a random student from the table, which statement could you use?

  1. SELECT TOP(1) first_name, last_name FROM Students ORDER BY NEWID();✔️
  2. SELECT TOP(1) RAND(first_name, last_name) FROM Student;
  3. SELECT TOP(1) first_name, last_name FROM Student;
  4. SELECT TOP(1) first_name, last_name FROM RAND(Student);

Q19. What result is returned after executing the following commands?

DECLARE @MyVariable int;
SET @MyVariable = 1;
GO
SELECT @MyVariable;
  1. error✔️
  2. 1
  3. null
  4. @MyVariable

Q20. Which statement creates a new database schema named Sales and establish Sharon as the owner?

  1. ALTER USER Sharon WITH DEFAULT_SCHEMA = Sales;
  2. ALTER USER Sharon SET SCHEMA Sales;
  3. CREATE SCHEMA Sales SET OWNER Sharon;
  4. CREATE SCHEMA Sales AUTHORIZATION Sharon;✔️

Reference link

Q21. The result of a CROSS JOIN between a table with 4 rows, and one with 5 rows, will give with _ rows.

  1. 1024
  2. 20✔️
  3. 0
  4. 9

Q22. You need to write a query that returns all products that have a SerialNumber ending with "10_3". Which WHERE clause should you use to fill in the blank in this query?

SELECT ProductID, ProductName, SerialNumber
FROM Products______ ;
  1. WHERE SerialNumer LIKE '%10_3'✔️
  2. WHERE SerialNumer LIKE ('%10'+'_'+'3')
  3. WHERE SerialNumer LIKE '%10"_"3'
  4. WHERE SerialNumer LIKE '%10[_]3'

Q23. When no join type between multiple tables in a query’s FROM clause is specified, what type of join is assumed?

  1. INNER✔️
  2. RIGHT
  3. LEFT
  4. FULL

Q24. How many bytes of storage does the int data type consume?

  1. 1 byte
  2. 2 bytes
  3. 4 bytes✔️
  4. 8 bytes

Q25. What does a RIGHT JOIN ensure?

  1. that only records from the rightmost table will be displayed
  2. that no records from the rightmost table are displayed if the records dont have corresponding records in the left table
  3. that records from the rightmost table will be displayed only if the records have a corresponding value in the leftmost table
  4. that all records from the rightmost table are represented in the result, even if there are no corresponding records in the left table✔️

Q26. You execute the following three queries. What is the result?

Create table students(id int identity(1000,1), firstname varchar(20),
lastname varchar(30));
insert into students(firstname,lastname)values('mark','twain');
select * from students;
  1. studentid firstname lastname 1 1001 mark twain

  2. studentid firstname lastname 1 1 mark twain

  3. studentid firstname lastname 1 1000 mark twain✔️

  4. studentid firstname lastname 1 null mark twain

Q27. Which Query returns all student names with the highest grade?

create table students( studentname varchar(50), grade int);

  1. select studentname from students where grade=max(grade);
  2. select top(1) studentname from students order by grade;
  3. select top(1) with ties studentname from students order by grade desc;✔️
  4. select studentname,max(grade) from students order by grade desc;

Q28. What role does "inventory" play?

select bookid, boooktitle, bookauthor,quantityonhand from inventory.books;

  1. you only want to see results from books currently in inventory
  2. it instructs the query engine to find the books table in the inventory schema✔️
  3. it instructs the query engine to find the books table in the inventory database
  4. it instructs the query engine to join the books table to the inventory schema

Q29. What is the result of an INNER JOIN between table1 and table2?

  1. Only records that have corresponding entries in table1 and table2 are displayed.✔️
  2. No records from table1 are ever displayed.
  3. All records from table1 are displayed, regardless of whether the records have a corresponding row in table2
  4. Only records that have no corresponding records in table1 or table2 are displayed.

Q30. To remove all of the content from the Students table but keep the schema, which statement should you use?

  1. TRUNCATE TABLE Students;✔️
  2. TRUNCATE * FROM Students;
  3. DROP TABLE Students;
  4. REMOVE * FROM Students;

Q31. Review the CREATE TABLE statement below. Which option, when placed in the blank space, ensures that the BookISBN column will not contain any duplicate values?

CREATE TABLE Books (
    BookID int PRIMARY KEY,
    BookISBN char(13) NOT NULL _____,
    BookTitle nvarchar(100) NOT NULL
);
  1. NO DUPLICATES
  2. UNIQUE CONSTRAINT AK_Books_BookISBN
  3. DUPLICATE CONSTRAINT (AK_Books_BookISBN)
  4. CONSTRAINT AK_Books_BookISBN UNIQUE✔️

Q32. Given a table with the following structure, which query will not return the lowest grade earned by any student?

CREATE TABLE Students (
    StudentName varchar(50),
    Grade int
);
  1. A
SELECT StudentName
FROM Students
WHERE Grade = (SELECT MIN(Grade) FROM Student);
  1. B
SELECT TOP(1) Grade
FROM Students
ORDER BY Grade;
  1. C✔️
SELECT MIN(Grade)
FROM Students
ORDER BY Grade;
  1. D
SELECT MIN(Grade)
FROM Students

Q33. Given a table with the following structure, which query will not return the lowest grade earned by any student?

T-SQL-Q33

  1. UPDATE Students SET last_name=’Smith’, email = ‘[email protected]’ WHERE id=’56295′;
  2. UPDATE Students SET last_name=’Smith’ AND email = ‘[email protected]’ WHERE id=’56295′;
  3. UPDATE Students SET last_name=’Smith’ AND email = ‘[email protected]’ WHERE id=56295;
  4. UPDATE Students SET last_name=’Smith’, email = ‘[email protected]’ WHERE id=56295;✔️

Q34. You would like to have a record added to a TableB every time a record is modified in TableA. What technique should you look at implementing?

  1. You should create a DML trigger on the server.
  2. You should create a DDL trigger on the database.
  3. You should create a DML trigger on TableA.
  4. You should create a DML trigger on TableB.✔️

Q35. What is the problem with this code?

DECLARE @Counter int;
SET @Counter = 1;
WHILE @Counter > 0
BEGIN
  SET @Counter = @Counter +1;
END;
  1. There is no END WHILE statement;
  2. The local varaible is not available to the WHILE block.
  3. The query causes an infinite loop.✔️
  4. "Counter" is an invalid variable name.

Q36. Which is the right query to change the name of the Philosophy Pandas team to the Philosophy Parrots?

T-SQL-Q36

  1. UPDATES Students SET team = ‘Philosophy Parrots’ WHERE team = ‘Philosophy Pandas’;✔️
  2. UPDATES Students SET team = Philosophy Parrots WHERE team = Philosophy Pandas;
  3. UPDATES Students SET team = "Philosophy Parrots" WHERE team = "Philosophy Pandas";
  4. UPDATES Students SET team = Philosophy Parrots WHERE team = Philosophy Pandas;

Q37. What is the result of this query?

SELECT '123'+'123' AS Result;

  1. error
  2. ‘123”123’
  3. 123123✔️
  4. 246

LinkedIn T-SQL Quiz Answers, LinkedIn T-SQL Assessment Answers, T-SQL LinkedIn Quiz Answers, T-SQL Assessment LinkedIn Answers, LinkedIn Skill Quiz Answers T-SQL, LinkedIn T-SQL Quiz, T-SQL LinkedIn Quiz, LinkedIn Quiz Answers T-SQL, LinkedIn T-SQL Assessment Quiz Answers, LinkedIn Skill Assessment T-SQL Answers, T-SQL LinkedIn Quiz, LinkedIn T-SQL Assessment Test Answers, LinkedIn T-SQL Test Answers, LinkedIn T-SQL Skill Assessment Answers, LinkedIn Skill Assessment Answers T-SQL, T-SQL LinkedIn Assessment Answers, LinkedIn T-SQL Assessment Answers, T-SQL LinkedIn Assessment Answers, Answers to LinkedIn Quizzes, LinkedIn Skill Assessment Answers GitHub, LinkedIn Assessment Test Answers, LinkedIn Skill Assessments Answers, LinkedIn assessment answers, LinkedIn skill quiz answers, LinkedIn assessment quiz answers, LinkedIn assessment answers 2021, LinkedIn test answers, LinkedIn quiz answers, LinkedIn assessment answers 2022, LinkedIn skill quiz questions, LinkedIn learning quiz answers

LinkedIn quizzes, skills assessment test LinkedIn, LinkedIn skills test, all LinkedIn skill assessments, LinkedIn exam, LinkedIn skill assessment, skill quiz LinkedIn, skills quiz LinkedIn, LinkedIn assessment test, LinkedIn assessments, LinkedIn answers, LinkedIn learning answers, all test answers, skill quiz, LinkedIn badges skills, quiz test answers, quiz answer, skill check answers, LinkedIn skills assessment answers, LinkedIn skill test answers, LinkedIn tests answers, LinkedIn test answers, LinkedIn quizzes answers, LinkedIn learning quiz answers, LinkedIn skill assessment answers, LinkedIn skill quiz answers, LinkedIn quiz answers, LinkedIn skill assessment answers GitHub, LinkedIn skill quiz, LinkedIn skills quiz, LinkedIn quiz, skill quiz LinkedIn, LinkedIn learning answers, LinkedIn assessment test, LinkedIn assessment answers, T-SQL LinkedIn Skill Assessment Answer, T-SQL LinkedIn Skill Assessment Answer, LinkedIn assessment answers, LinkedIn skill assessment answers, LinkedIn assessments, LinkedIn skill assessment, LinkedIn assessment answers 2021, LinkedIn assessment answers GitHub, LinkedIn assessment quiz answers, T-SQL LinkedIn Skill Assessment Answer

No post found!

Leave a Comment

Your email address will not be published.