NEW
Font size
WorksheetsRevision database
Total questions: 45
Worksheet time: 23mins
Which statement is used to extract data from a database?
Extract
Get
Open
Select
Which character returns all the data found in a table?
%
#
*
/
Which word is missing from the following SQL statement?
Select * table_name
With
Where
From
And
Where does the CREATE Command belong?
DML
DDL
DCL
Which SQL statement is used to insert new data in a database?
ADD NEW
INSERT INTO
ADD RECORD
INSERT NEW
___________ which helps to uniquely identify a record.
Check key
Tuple
Default key
Primary key
What does the "Q" in SQL stand for?
Question
Query
Quotes
Queue
Which SQL statement is used to update data in a database?
SAVE AS
MODIFY
ALTER
UPDATE
With SQL, how do you select all the columns from a table named "EMPLOYEE"?
SELECT EMPLOYEE
SELECT * EMPLOYEE
SELECT * FROM EMPLOYEE
SELECT ALL FROM EMPLOYEE
Backup data means
Creating a copy / duplicate of the data on your system
Backward storage of the data
Moving back and forth in the database
Creating a data on your system
Attribute in a database means
Rows
Columns
Cell
Table
What is HH:MM:SS format in MySQL?
Hospital Management System
Headings Managed Sequentially
Heavy Machine System
Hours Minutes Second
MySQL stores data in the
Cell
Rows
Columns
Tables
What is missing at the end of the statement
SELECT CustomerName, City, Country FROM Customers
?
,
;
*
Which SQL function is used to count the number of rows in a SQL query?
COUNT()
NUMBER()
SUM()
COUNT(*)
Which of the following SQL clauses is used to DELETE tuples from a database table?
DELETE
REMOVE
DROP
CLEAR
What is the correct syntax to create a table on MySQL
CREATE TABLE <tablename>
CREATE ENTITY <tablename>
CREATE COLLECTION <tablename>
CREATE RECORD <tablename>
Replace the missing word:
CREATE TABLE departments (
name _____,
)
varchar(255)
string(255)
letters(255)
words(255)
How would we represent a column referencing another table as the a foreign key?
FOREIGN KEY (department_id) REFERENCES departments(id)
FOREIGN KEY departments(id)
REFERENCES (department_id),
FOREIGN KEY REFERENCES
departments(id)
(department_id),
FOREIGN KEY
REFERENCES
(department_id) departments(id)
To create a record into a users table, what would be the correct syntax?
insert from users (name) values ("stephen");
insert into users (name) values ("stephen");
insert where users (name) values ("stephen");
insert when users (name) values ("stephen");
Which SQL statement is used to update data in a database?
SAVE AS
CHANGE
UPDATE
MODIFY
Which SQL statement is used to delete data from a database?
REMOVE
DELETE
COLLAPSE
DROP
Which SQL statement is used to insert new data in a database?
ADD RECORD
ADD NEW
INSERT NEW
INSERT INTO
With SQL, how do you select a column named "FirstName" from a table named "Persons"?
EXTRACT FirstName FROM Persons
SELECT FirstName FROM Persons
SELECT Persons.FirstName
Select Persons FROM FirstName
Which data manipulation command is used to combines the records from one or more tables?
SELECT
PROJECT
JOIN
PRODUCT
In which of the following cases a DML statement is not executed?
When existing rows are modified.
When a table is deleted.
When some rows are deleted.
All of the above
It is a DQL command that is used to display record.
DISPLAY
STRUCTURE
WHERE
SELECT
It is a flexible language that is used to communicate with a relational database such as MariaDB
Java
PhpMyAdmin
SQL
MariaDB
What is the meaning of DDL?
Data Definition Language
Database definition Language
Data Definition Link
Data Division Langauge
What is the meaning of DML?
Database Manipulation Language
Data Manipulative Language
Data Manipulation Language
Data Management Language
What is the meaning of DCL?
Data Count Language
Database Control Language
Data Calculation Language
Data Control Language
What is the commands that define a database, including creating, altering, and dropping tables and establishing constraints
DCL
DDL
DML
SQL
It is a command from DML that is used to remove an existing record.
DROP
DELETE
ERASE
EDIT
Which of the following is not a database data type?
varchar
int
array
date
Which SQL statement would add a record to the database?
INSERT INTO Designer VALUES ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456')
INSERT VALUES ('SMI01', 'M Smith', 'mail@msmith.com', 01224123456') INTO Designer
INSERT ('SMI01', 'M Smith', 'mail@msmith.com', '01224123456') INTO Designer
INSERT Designer INTO VALUES (''SMI01', 'M Smith', 'mail@msmith.com', '01224123456')
