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
With SQL, how do you select all the columns from a table named "Products"?
SELECT [all] FROM Products
SELECT All Products
SELECT *.Products
SELECT * FROM Products
Next >
2/25
The OR operator shows a record if any conditions listed are true. The AND operator shows a record if all of the conditions listed are true.
True
False
Next >
3/25
Which SQL statement is applied for updating data in a database?
UPDATE
SAVE AS
MODIFY
SAVE
Next >
4/25
What SQL statement is used for inserting new data in a database?
ADD RECORD
ADD INTO
INSERT INTO
ADD NEW
Next >
5/25
Which SQL statement is used to delete data from a table?
TRUNCATE
DELETE
REMOVE
Next >
6/25
The primary - foreign key relations are implemented to
cross-reference database tables.
clean-up the database.
to index the database.
Next >
7/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 >
8/25
Which of the following statements is true about systems information in an RDBMS?
RDBMS stores database definition information in system-created tables.
Such information can be accessed with SQL.
Often, such information cannot be updated by a user.
All of the above.
Next >
9/25
Can the SELECT clause list have a computed value like in the example below? SELECT CustomerName, UnitPrice * NumberofUnits FROM Sale.
No
Yes
Next >
10/25
What is the purpose of constraints in SQL?
To limit the type of data that can be stored in a column.
To join tables together based on a condition.
To sort the data in ascending or descending order.
To group data based on column values.
Next >
11/25
What is the purpose of a view in SQL?
To create a virtual table based on the result-set of an SQL statement.
To insert new rows into a table.
To define new data types.
To permanently store data.
Next >
12/25
How do you update the 'Salary' column in the 'Employees' table for an employee with 'EmployeeID' 123 to 50000?
UPDATE Employees SET Salary = 50000 WHERE EmployeeID = 123
CHANGE Employees SET Salary = 50000 WHERE EmployeeID = 123
MODIFY Employees SET Salary = 50000 WHERE EmployeeID = 123
EDIT Employees SET Salary = 50000 FOR EmployeeID = 123
Next >
13/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 >
14/25
Which of the following is a valid SQL aggregate function?
COLLECT()
COMBINE()
SUM()
CONNECT()
Next >
15/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 >
16/25
Which of the following is NOT a valid aggregate function in SQL?
SUM()
AVERAGE()
MAX()
COUNT()
Next >
17/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 >
18/25
Which SQL clause is used to specify a condition while fetching data from a single table or joining multiple tables?
HAVING
WHERE
ON
AND
Next >
19/25
Which statement correctly shows the use of an alias in SQL?
SELECT EmployeeID AS ID FROM Employees
SELECT EmployeeID RENAME ID FROM Employees
SELECT EmployeeID -> ID FROM Employees
SELECT EmployeeID NAME ID FROM Employees
Next >
20/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 >
21/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 >
22/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 >
23/25
In SQL, which command is used to add a new column to an existing table?
ADD COLUMN column_name TO table_name
INSERT COLUMN column_name INTO table_name
ALTER TABLE table_name ADD column_name column_type
UPDATE TABLE table_name SET ADD column_name column_type
Next >
24/25
How do you find the minimum value in a column named 'Price' from the 'Products' table?
SELECT MIN(Price) FROM Products
FIND MINIMUM(Price) IN Products
SELECT LOWEST(Price) FROM Products
GET MIN(Price) FROM Products
Next >
25/25
What does the SQL 'CROSS JOIN' clause do?
Joins two tables in such a way that each row of the first table is combined with each row of the second table
Joins only the matching rows between two tables
Creates a join that can be filtered using a WHERE clause
Combines rows from two tables based on a related column
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.