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
Which SQL statement is applied for updating data in a database?
UPDATE
SAVE AS
MODIFY
SAVE
Next >
2/25
What SQL statement is used to extract data from a database?
GET
OPEN
EXTRACT
SELECT
Next >
3/25
Which SQL statement is applied for returning only different values?
SELECT UNIQUE
SELECT INDENTITY
SELECT DIFFERENT
SELECT DISTINCT
Next >
4/25
Which SQL statement is used to delete data from a table?
TRUNCATE
DELETE
REMOVE
Next >
5/25
The primary - foreign key relations are implemented to
cross-reference database tables.
clean-up the database.
to index the database.
Next >
6/25
Once AUTOCOMMIT is set on, changes will be made automatically at the end of every SQL statement.
True
False
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 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 >
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 does the TRUNCATE TABLE do?
Deletes all rows from a table
Deletes the table
Checks if the table has primary key specified
Next >
11/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 >
12/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 >
13/25
Which SQL data type is used to store fixed-length character strings?
VARCHAR
TEXT
CHAR
STRING
Next >
14/25
How do you create a new table named 'Employees' with columns 'EmployeeID' (integer) and 'EmployeeName' (varchar)?
CREATE TABLE Employees (EmployeeID int, EmployeeName varchar)
NEW TABLE Employees (EmployeeID int, EmployeeName string)
CREATE Employees (EmployeeID integer, EmployeeName text)
TABLE Employees ADD (EmployeeID int, EmployeeName varchar)
Next >
15/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 >
16/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 >
17/25
Which of the following is a valid SQL aggregate function?
COLLECT()
COMBINE()
SUM()
CONNECT()
Next >
18/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 >
19/25
Which SQL function is used to return the current date and time?
GETDATE()
CURRENT_TIMESTAMP
NOW()
DATETIME()
TIMESTAMP()
Next >
20/25
What is the purpose of the SQL 'WITH' clause?
To provide a temporary name to a table or a set of columns
To define a temporary subquery block that can be used in a SELECT statement
To specify the conditions for a join
To initialize variables within an SQL query
Next >
21/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 >
22/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 >
23/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 >
24/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 >
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.