Você está na página 1de 8

.

Recommended
Question Your Answer Correct?
Reading
the process of arranging
information stored in a database
Normalization is… Yes
in a way, which removes
redundancy and ambiguity.
The AVG SQL function returns
average in the values in agroup. Yes
the ...
What does DML stand for? Data Manipulation language Yes
The FROM SQL clause is used specify what table we are
Yes
to… selecting or deleting data from.
Locking is a process preventing
users from reading data being
What does the term 'locking' changed by other users, and
Yes
refer to? prevents concurrent users from
changing the same data at the
same time.
UPDATE, DELETE, INSERT
Sub-queries can be nested in… Yes
and SELECT statements.
SQL is ... both ANSI and ISO standard. Yes
Which SQL keyword is used to
DISTINCT Yes
retrieve only unique values?
The UNION SQL clause can be
the SELECT clause only Yes
used with…
If you don't specify ASC or
DESC after a SQL ORDER BY
ASC Yes
clause, the following is used by
default:
Atomicity. Consistency.
What does ACID stand for? Yes
Isolation. Durability.
Can the SELECT clause list have
a computed value like in the
example below? SELECT Yes. Yes
CustomerName, UnitPrice *
NumberofUnits FROM Sales
What does the CREATE TABLE
Creates a new database table Yes
statement do?
When inserting data in a table do
you always have to specify a list
No Yes
of all column names you are
inserting values for?
The NULL SQL keyword is used represent a missing or unknown Yes
value. NULL in SQL represents
to ...
nothing.

Start a new SQL Quiz

Test End
You have completed the test for 2 minutes and 22 seconds and answered 100 % of the
questions correctly.

Recommended
Question Your Answer Correct?
Reading
Determines if a value matches any of
The IN SQL keyword… Yes
the values in a list or a sub-query.
Which of the following
SQL clauses is used to
DELETE Yes
DELETE data from a
database table?
Which of the following
SQL statements selects the SELECT 'Success' Yes
string 'Success'?
What will be the result of
the following SQL
statement: SELECT 'Have' Yes
LEFT('Have a nice day.',
4)
Locking is a process preventing users
from reading data being changed by
What does the term
other users, and prevents concurrent Yes
'locking' refer to?
users from changing the same data at
the same time.
Cursor is acronym for Current Set Of
Records and is a database object
What is a database cursor? Yes
pointing to a currently selected set of
records.
The UNION operator combines the
What does the UNION results of two or more queries into a
Yes
operator do? one result that includes all the rows
from the queries in the union.
The FROM SQL keyword specify the table we are are selecting
Yes
is used to... or deleting from.
A view is a virtual table which results
of executing a pre-compiled query. A
What is a view? view is not part of the physical Yes
database schema, while the regular
tables are.
a special type of store procedure,
A trigger is… Yes
executed when certain event occurs
Can you join a table to
Yes. Yes
itself?
The FROM SQL clause is specify what table we are selecting or
Yes
used to… deleting data from.
The primary key is a column or
combination of columns whose values
What is a primary key? Yes
uniquely identify each row in the
table.
The UNION SQL clause
the SELECT clause only Yes
can be used with…
What does SQL stand for? Structured Query Language. Yes

Start a new SQL Quiz

Test End
You have completed the test for 3 minutes and 18 seconds and answered 100 % of the
questions correctly.

Recommended
Question Your Answer Correct?
Reading
Which of the following SQL
statements does count the SELECT COUNT(*) FROM Sales Yes
rows in the 'Sales' table?
returns all rows that have matching
The INNER JOIN clause… value in the field on which the 2 Yes
tables are joined.
The primary key is a column or
combination of columns whose
What is a primary key? Yes
values uniquely identify each row in
the table.
Which of the following is a
FROM Yes
reserved SQL keyword?
What does the following SQL
statement do: SELECT
Selects all customers from table
Customer, COUNT(Order)
Sales that have made more than 5 Yes
FROM Sales GROUP BY
orders.
Customer HAVING
COUNT(Order) >5
What does follow after the List of columns that will be selected
Yes
SQL SELECT clause? or the * symbol.
Which SQL functions is used COUNT() Yes
to count the number of rows
in a SQL query?
What is the ABS SQL To return the absolute, positive
Yes
function used for? value of a numeric expression.
The WHERE SQL clause
condition(s) is applied to all rows in
the result set before the HAVING
What is the difference
clause is applied (if present). The
between the WHERE and Yes
HAVING clause is used only with
HAVING SQL clauses?
SELECT SQL statements and
specifies a search condition for an
aggregate or a group.
A set of SQL statements stored and
What is a stored procedure? Yes
executed as a single entity.
Which of the following SQL
commands is used to retrieve SELECT Yes
data?
What is the INSERT
To insert data. Yes
command used for?
A foreign key is a key field
(column) in a database table, which
relates the table to another table
What is a foreign key? where the key is a primary key. The Yes
primary - foreign key relations are
used to cross-reference database
tables.
The SQL DROP TABLE
delete a table from the database Yes
clause is used to...
The table rows are also
Records Yes
known as...

Test End
You have completed the test for 1 minutes and 48 seconds and answered 93.33 % of the
questions correctly.

Recommended
Question Your Answer Correct?
Reading
TRUNCATE TABLE
Which of the following is true? No SQL DELETE
deletes table from a database
A trigger is a special kind of
What is a trigger? stored procedures executed Yes
when certain event occurs.
What does the HAVING clause do? The HAVING keyword Yes
specifies a search condition
for an aggregate or a group.
UPDATE, DELETE,
Sub-queries can be nested in… INSERT and SELECT Yes
statements.
represent a missing or
The NULL SQL keyword is used
unknown value. NULL in Yes
to ...
SQL represents nothing.
Can you join a table to itself? Yes. Yes
The TRUNCATE TABLE… deletes all rows from a table Yes
A trigger belongs to… a single table in the database Yes
If you don't specify ASC or DESC
after a SQL ORDER BY clause, the ASC Yes
following is used by default:
Which of the following SQL
SELECT Yes
commands is used to retrieve data?
Which SQL keyword is used to
DISTINCT Yes
retrieve only unique values?
Which of the following SQL
TRUNCATE TABLE Sales Yes
statements is correct?
To return the absolute,
What is the ABS SQL function used
positive value of a numeric Yes
for?
expression.
Can the SELECT clause list have a
computed value like in the example
below? SELECT CustomerName, Yes. Yes
UnitPrice * NumberofUnits FROM
Sales
The AS SQL clause is used
change the name of a
What is the purpose of the SQL AS
column in the result set or to Yes
clause?
assign a name to a derived
column.

Test End
You have completed the test for 1 minutes and 18 seconds and answered 100 % of the
questions correctly.

Recommended
Question Your Answer Correct?
Reading
The SQL BETWEEN operator … Specifies a range to test. Yes
Which of the following commands DELETE Yes
is used to delete data froma a SQL
database table?
Can you join a table to itself? Yes. Yes
Definition of the condition to
What does follow after the SQL
be met for the rows to be Yes
WHERE clause?
returned.
A trigger is a special kind of
What is a trigger? stored procedures executed Yes
when certain event occurs.
Can the SELECT clause list have a
computed value like in the example
below? SELECT CustomerName, Yes. Yes
UnitPrice * NumberofUnits FROM
Sales
Which SQL keyword is used to
DISTINCT Yes
retrieve only unique values?
select data from 2 or more
The JOIN is a SQL keyword used to
tables related by common Yes
...
attribute (table column).
both ANSI and ISO
SQL is ... Yes
standard.
The SQL ALTER TABLE
clause modifies a table
What does the ALTER TABLE
definition by altering, Yes
clause do?
adding, or deleting table
columns and/or constraints.
The AS SQL clause is used
What is the purpose of the SQL AS change the name of a column
Yes
clause? in the result set or to assign a
name to a derived column.
The FROM SQL keyword is used specify the table we are are
Yes
to... selecting or deleting from.
Which 2 SQL keywords specify the
sorting direction of the result set ASC and DESC Yes
retrieved with ORDER BY clause.
Which of the following SQL
SELECT Yes
commands is used to retrieve data?
Determines if a value
The IN SQL keyword… matches any of the values in Yes
a list or a sub-query.

Start a new SQL Quiz


You have completed the test for 1 minutes and 59 seconds and answered 100 % of the
questions correctly.

Question Your Answer Correct? Recommended


Reading
The FROM SQL keyword specifies the
What does the FROM tables, views, and joined tables used in
Yes
SQL keyword specify? SELECT, UPDATE and DELETE SQL
statements.
Which of the following
SQL statements does
SELECT COUNT(*) FROM Sales Yes
count the rows in the
'Sales' table?
INSERT INTO Projects (ProjectName,
Which SQL statement
ProjectDescription) VALUES ('Content
inserts data into a table Yes
Development', 'Website content
called Projects?
development project')
The FROM SQL clause specify what table we are selecting or
Yes
is used to… deleting data from.
The table columns are
Fields Yes
also known as...
Can you use the SQL
JOIN and SQL
Yes. Yes
HAVING clauses in one
SQL statement?
The HAVING clause
SELECT clause Yes
can be used only with ...
Which SQL keyword is
used to specify WHERE Yes
conditional search?
a special type of store procedure,
A trigger is… Yes
executed when certain event occurs
Which of the following SELECT CustomerName,
SQL statements is COUNT(CustomerName) FROM Orders Yes
correct? GROUP BY CustomerName
What is the ABS SQL To return the absolute, positive value of
Yes
function used for? a numeric expression.
The UNION SQL clause
the SELECT clause only Yes
can be used with…
Which of the following
SQL clauses is used to
DELETE Yes
DELETE data from a
database table?
What will be the result
of the following SQL
The SQL statement will generate an
statement: SELECT * Yes
error.
FROM Table1 HAVING
Column1 > 10
An index is a database table attribute,
What is an index? which speeds-up data search within a Yes
table.

Você também pode gostar