Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
Number convertor
JTW Decoder
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
MD5 Hash Generator
Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase
String to Uppercase
Word Count Calculator
Empty Lines Remover
HTML Tags Remover
Binary to Hex
Hex to Binary
Rot13 Transform on a String
String to Binary
Duplicate Lines Remover
Change theme
Dark
Light
System
Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
How To
How To NodeJs
How To Linux
How To AngularJs
How To PHP
How To HTML
How To CSS
How To Symfony
How To Git
How To Apache
How To JavaScript
How To Java
How To Vue.js
How To Python
SQL Basics
1/25
What SQL keyword is applied for sorting the result-set?
SORT BY
ORDER
ORDER BY
SORT
Next >
2/25
What SQL statement is used to extract data from a database?
GET
OPEN
EXTRACT
SELECT
Next >
3/25
Once AUTOCOMMIT is set on, changes will be made automatically at the end of every SQL statement.
True
False
Next >
4/25
Which of the following is true about CASE SQL statement?
A way to establish an IF-THEN-ELSE in SQL.
A way to establish a loop in SQL.
A way to establish a data definition in SQL.
All of the above.
Next >
5/25
What does AVG SQL return?
The maximum value from a column.
The sum of values in a column.
The average of the values in a group.
Next >
6/25
How do you use a subquery to find names of customers who have placed orders in an 'Orders' table?
SELECT Name FROM Customers WHERE CustomerID IN (SELECT CustomerID FROM Orders)
SELECT CustomerID FROM Orders WHERE Name IN (SELECT Name FROM Customers)
SELECT Name FROM Customers WHERE EXISTS (SELECT CustomerID FROM Orders)
SELECT Name FROM Customers JOIN Orders ON Customers.CustomerID = Orders.CustomerID
Next >
7/25
Which SQL data type is used to store fixed-length character strings?
VARCHAR
TEXT
CHAR
STRING
Next >
8/25
What is the purpose of the 'LIKE' operator in SQL?
To compare a value to similar values using wildcard operators.
To check for exact matches in a column.
To perform mathematical operations.
To limit the number of rows returned in a query.
Next >
9/25
Which of the following is a valid SQL aggregate function?
COLLECT()
COMBINE()
SUM()
CONNECT()
Next >
10/25
In SQL, what does the 'BETWEEN' operator do?
Checks whether a value lies within a specified range.
Compares two values for equality.
Sorts the result set between two columns.
Divides the result set into two parts.
Next >
11/25
Which SQL statement is used to return the number of records in the 'Employees' table?
COUNT(Employees)
SELECT COUNT(*) FROM Employees
GET NUMBER OF Employees
SELECT ROWS FROM Employees
Next >
12/25
What is the result of the following query: SELECT COUNT(DISTINCT EmployeeName) FROM Employees?
The total number of rows in the Employees table
The number of unique employee names in the Employees table
A syntax error
The first unique employee name in the Employees table
Next >
13/25
Which SQL clause is used to filter the results of a GROUP BY operation?
FILTER BY
HAVING
WHERE
GROUP WHERE
Next >
14/25
What does the following SQL statement do: SELECT EmployeeName, SUM(Salary) OVER (PARTITION BY DepartmentID) FROM Employees?
Summarizes the total salary for each department
Displays an error as the syntax is incorrect
Displays the sum of salaries within each department for each employee
Calculates the overall sum of salaries in the Employees table
Next >
15/25
How do you delete a table named 'TemporaryData' only if it exists in the database?
DROP TABLE IF EXISTS TemporaryData
DELETE TABLE TemporaryData IF EXISTS
REMOVE TABLE TemporaryData WHEN EXISTS
DROP TABLE TemporaryData ONLY IF EXISTS
Next >
16/25
What is the primary purpose of the SQL 'INNER JOIN' clause?
To combine rows from two or more tables based on a related column between them
To retrieve rows that exist in one table but not in another
To select all rows from both tables regardless of the match between columns
To update records in one table based on values in another table
Next >
17/25
How do you find the total number of entries in a table named 'Orders'?
FIND COUNT(*) FROM Orders
SELECT COUNT(*) FROM Orders
COUNT ALL FROM Orders
TOTAL COUNT(*) IN Orders
Next >
18/25
In SQL, which command is used to change the structure of a table such as adding a column or changing a column type?
MODIFY TABLE
CHANGE TABLE
ALTER TABLE
UPDATE TABLE
Next >
19/25
How can you retrieve unique values from the column 'EmployeeName' of the 'Employees' table?
SELECT DISTINCT EmployeeName FROM Employees
SELECT UNIQUE EmployeeName FROM Employees
GET ALL UNIQUE EmployeeName FROM Employees
SELECT EmployeeName FROM Employees DISTINCT
Next >
20/25
Which of the following is a valid type of SQL join?
CROSS JOIN
REVERSE JOIN
OUTER JOIN
LINK JOIN
RIGHT JOIN
Next >
21/25
Which SQL statement is used to return only distinct (different) values?
SELECT UNIQUE column_name FROM table_name
SELECT DISTINCT column_name FROM table_name
SELECT DIFFERENT column_name FROM table_name
SELECT column_name FROM table_name DISTINCT
Next >
22/25
In SQL, what is a subquery?
A query within another query
A function used to pass parameters to a query
A method to rename a query
A special operator to join queries
Next >
23/25
How do you select all records from a table named 'Customers' where the 'CustomerName' starts with 'A'?
SELECT * FROM Customers WHERE CustomerName LIKE 'A%'
SELECT * FROM Customers WHERE CustomerName = 'A*'
SELECT * FROM Customers WHERE CustomerName STARTS WITH 'A'
SELECT * FROM Customers WHERE CustomerName BEGINS WITH 'A'
Next >
24/25
Which SQL clause is used to sort the result set in ascending or descending order?
SORT BY
ORDER BY
ARRANGE BY
SEQUENCE BY
Next >
25/25
What is the function of the 'HAVING' clause in SQL?
To specify a search condition for a group or an aggregate function used in SELECT statement
To filter records before the GROUP BY clause
To join multiple tables based on a condition
To specify the order of records
Next >
To get the result of the quiz, please provide your email address (optional)..
Get Certificate
It seems you haven't answered any questions yet. Please provide your answers to proceed.