Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

10/4/22, 2:26 AM Assessment Review - AlmaBetter

SQL Fundamentals

Below is a scored review of your assessment. All questions are shown.

SQL

Correct Answer

Partially Correct

Incorrect Answer

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 1/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

1 Which of the following statement is correct about ‘CREATE TABLE’ command while creating a table?

Your Answer
We need to assign a datatype to each column

Correct Answer
We need to assign a datatype to each column

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 2/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

2 Which operator is used to compare the NULL values in SQL?

Your Answer
IS NULL

Correct Answer
IS NULL

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 3/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

3 Which command will return a list of triggers in the current database?

Your Answer
SHOW TRIGGERS;

Correct Answer
SHOW TRIGGERS;

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 4/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

4 Which operation are allowed in a join view?

Your Answer
All of the mentioned

Correct Answer
All of the mentioned

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 5/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

5 To combine multiple retrievals, we write several SELECT statements and put the keyword between them.
What is the keyword?

Your Answer
UNION

Correct Answer
UNION

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 6/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

6 If we have not specified ASC or DESC after a SQL ORDER BY clause, the following is used by default

Your Answer
There is no default value

Correct Answer
ASC

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 7/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

7 Which operator is used to compare a value to a specified list of values?

Your Answer
IN

Correct Answer
IN

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 8/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

8 Which of the following is true for TRUNCATE in SQL?

Your Answer
It is usually faster than DELETE command

Correct Answer
It is usually faster than DELETE command

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 9/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

9 Management has requested that you build an employee database. You start with the employee table.
What is the correct syntax?

Your Answer
CREATE TABLE employee (
employeeID char(10),
firstName varchar(50),
lastName varchar(50),
phone varchar(20),
address varchar(50),
PRIMARY KEY (employeeID)
);

Correct Answer
CREATE TABLE employee (
employeeID char(10),
firstName varchar(50),
lastName varchar(50),
phone varchar(20),
address varchar(50),
PRIMARY KEY (employeeID)
);

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 10/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

10 SQL Views are also known as

Your Answer
Virtual tables

Correct Answer
Virtual tables

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 11/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

11 Which SQL function is used to count the number of rows in a SQL query?

Your Answer
COUNT(*)

Correct Answer
COUNT(*)

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 12/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

12 A sequence in SQL can generate a maximum number:

Your Answer
38 digits

Correct Answer
38 digits

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 13/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

13 Which choice is NOT a statement you would use to filter data?

Your Answer
LIMIT

Correct Answer
GROUP_BY

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 14/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

14 Which of the following is also called an INNER JOIN?

Your Answer
SELF JOIN

Correct Answer
EQUI JOIN

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 15/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

15 You need an exact copy of a table with all columns and indexes. How?

Your Answer
create table

Correct Answer
show create table

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 16/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

16 Which of the followings is/are Data Definition Language command?

Your Answer
CREATE
DROP

Correct Answer
CREATE
DROP
RENAME

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 17/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

17 SQL is by default case insensitive.

Your Answer
True

Correct Answer
True

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 18/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

18 Semicolon is used to separate each SQL statement in database systems that allow more than one SQL
statement.

Your Answer
True

Correct Answer
True

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 19/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

19 How can a SQL developer add a key on a table?

Your Answer
All of the Mentioned

Correct Answer
All of the Mentioned

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 20/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

20 You are working with the table. You want to use full-text search to find the customers who live on a
street or a drive. What is the command to do that? Table name: customers
ID lastname firstname phone address city state zip
A001 Smith Bob 212-555-1212 Street New York NY 10001
A002 Chang John 213-555-5678 Drive Los Angeles CA 90210
A003 Smith Mary 999-999-9999 Street Anytown VA 12345
A004 Johnson Jack 312-312-3120 Avenue Chicago IL 60606
A005 Lopez Linda 737-777-3333 Street Austin TX 73344

Your Answer
SELECT *
FROM customers
WHERE address = 'Street' OR address ='Drive';

Correct Answer
SELECT *
FROM customers
WHERE address = 'Street' OR address ='Drive';

Explanation
None.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 21/22
10/4/22, 2:26 AM Assessment Review - AlmaBetter

Page 1 of 1

Summary

Check Leaderboard

Software by

Version 11.2

Privacy Policy. Assessment content is copyright 2022, AlmaBetter.

https://almabetter.onlinetests.app/Assess.aspx?guid=4649E245338B48F6A67CEAD8E6610A8E&a=R1 22/22

You might also like