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
Which SQL statement is applied for updating data in a database?
UPDATE
SAVE AS
MODIFY
SAVE
Next >
3/25
What SQL statement is used for inserting new data in a database?
ADD RECORD
ADD INTO
INSERT INTO
ADD NEW
Next >
4/25
Once AUTOCOMMIT is set on, changes will be made automatically at the end of every SQL statement.
True
False
Next >
5/25
Which of the following statements is true about embedded SQL?
Hard-coded SQL statements in a program language such as Java.
The process of making an application capable of generating specific SQL code on the fly.
Hard-coded SQL statements in a procedure.
Hard-coded SQL statements in a trigger.
Embedded SQL is applied for returning data that will be used in the main query as a condition.
Next >
6/25
Which of the SQL statements below deletes all the rows in a table called PricesData?
DELETE ALL PricesData
DELETE PricesData
DELETE FROM PricesData
DELETE rows FROM PricesData
Next >
7/25
What does the TRUNCATE TABLE do?
Deletes all rows from a table
Deletes the table
Checks if the table has primary key specified
Next >
8/25
Which of the following is an open standard application programming interface(API) for accessing a database?
Topic Map Query Language
Open Database Connectivity
Open Data-Link Interface
Universal Data Access
Next >
9/25
Which SQL statement adds a 'Salary' column to the 'Employees' table?
ALTER TABLE Employees ADD COLUMN Salary int
UPDATE TABLE Employees ADD Salary int
MODIFY TABLE Employees ADD Salary int
INSERT INTO Employees (Salary) VALUES (int)
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
What does the SQL statement 'BEGIN TRANSACTION' do?
Starts a new SQL transaction.
Creates a new table called TRANSACTION.
Begins a new subquery.
Starts a new index creation process.
Next >
13/25
Which SQL statement is used to set a default value for a column?
SET DEFAULT
ALTER TABLE ... SET DEFAULT
MODIFY COLUMN ... DEFAULT
UPDATE COLUMN ... SET DEFAULT
Next >
14/25
What does the SQL clause 'LIMIT 10' do when added to a SELECT statement?
Limits the result to the first 10 rows.
Selects only the 10th row.
Limits each column to 10 characters.
Throws an error as 'LIMIT' is not a valid SQL clause.
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
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 >
17/25
How do you rename a column 'EmployeeName' to 'FullName' in the 'Employees' table?
ALTER TABLE Employees RENAME COLUMN EmployeeName TO FullName
UPDATE TABLE Employees CHANGE EmployeeName FullName
ALTER TABLE Employees MODIFY COLUMN EmployeeName AS FullName
RENAME COLUMN EmployeeName TO FullName IN Employees
Next >
18/25
Which SQL statement is used to change the data type of a column in an existing table?
ALTER TABLE table_name MODIFY column_name new_data_type
UPDATE TABLE table_name SET column_name TYPE new_data_type
CHANGE TABLE table_name column_name new_data_type
MODIFY TABLE table_name column_name SET TYPE new_data_type
Next >
19/25
Which statement is used to add a new row to a table in SQL?
ADD ROW INTO tableName (column1, column2) VALUES (value1, value2)
INSERT INTO tableName (column1, column2) VALUES (value1, value2)
CREATE ROW IN tableName (column1, column2) VALUES (value1, value2)
APPEND INTO tableName (column1, column2) VALUES (value1, value2)
Next >
20/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 >
21/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 >
22/25
What does the SQL 'UNION' operator do?
Joins the contents of two tables side by side
Combines the results of two or more SELECT statements into a single result set
Updates one table based on the contents of another
Deletes records in one table based on the contents of another
Next >
23/25
Which of the following is a valid type of SQL join?
CROSS JOIN
REVERSE JOIN
OUTER JOIN
LINK JOIN
RIGHT JOIN
Next >
24/25
What is the purpose of the 'GROUP BY' clause in SQL?
To group rows that have the same values in specified columns into summary rows
To group the output of a SQL query by the values of a specific column
To sort the result set of a query by the specified column values
To filter rows based on the condition specified by the aggregate function
Next >
25/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 >
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.