40 Questions
The ______ command is used to remove an object such as an index, column or even a table from a database permanently.
DROP
A ______ is a group of database objects such as tables and indexes that are related to each other.
Schema
The ______ constraint ensures that no duplicate values are entered in specific columns that do not participate in a primary key.
Unique
The ______ function returns the current system date for MySQL.
NOW
The ______ operator is used to check whether an attribute value matches a given string.
LIKE
The ______ function produces a date by adding a specified number to a specified part of date in SQL Server.
DATEADD
The ______ function returns the time between two dates in MySQL.
DATEDIFF
The ______ command is used to list the contents of a table.
SELECT
The ______ function returns the absolute value of any numeric value
ABS
The ______ function returns the starting position of a specified pattern in MySQL
LOCATE/INSTR
The ______ function is used to return a single part of a date/time, such as year, month, day, hour, minutes, etc. in MySQL
EXTRACT
The ______ function rounds numbers to a specified number of decimal places
ROUND
The ______ function returns the length (number of characters) of a desired string excluding trailing blanks in MySQL
LENGTH
The ______ function returns the string in UPPERCASE in SQL Server
UPPER
The ______ function returns the next lower integer value when a number contains decimal places
FLOOR
The ______ function returns the current system date and time in SQL Server
GETDATE
A ______ parameter is part of a stored procedure that allows it to accept values and serve as variables.
input
A ______ parameter is part of a stored procedure that allows it to return a value and serve as variables.
output
In SQL Server, we can use execute, the actual name of the procedure or ______ to execute the stored procedure.
exec
A ______ temporary table is visible only to the session that it is created from and is dropped automatically when the connection is closed.
local
??? temporary tables are available to all users and are automatically dropped when the last user accessing the table disconnects from the database.
global
??? functions are often used as 'parameterised views' as they can be included in place of tables in a query and can accept arguments.
Table-valued
??? functions contain a single statement, which must be a SELECT. The results of the query become the return value of the functions.
Scalar
A ______ backup is a type of backup that creates a complete backup of the database as well as part of the transaction log, so the database can be recovered.
Full
A ______________ backup is a type of backup that must be done at least once before any of the other types of backup can be run.
full
A ______________ backup is a type of backup that is the superset of the last full backup and contains all changes that have been made since the last full backup.
differential
The purpose of a transaction ______________ is to store a series of logs that provide the history of every modification of data, in a database.
log
A ______________ backup allows the database to be recovered to a specific point in time.
point-in-time
______________ are temporary storage areas in primary memory used to speed up disk operations.
buffers
______________ logging ensures in case of a failure, the database can later be recovered to a consistent state, using the data in the transaction log.
write-ahead
A ______________ database is a structured data that provides more functionality but gives less performance.
relational
In ______________ databases, nodes and edges are the data model used.
graph
Data is retrieved using the direct request method (provide the ______ and get the data) in this type of NoSQL databases data model
key
MongoDB stores documents on disk in the ______ serialization format
BSON
When comparing values of different BSON types, the lowest datatype is ______
MinKey
The default database of MongoDB is ______
admin
The command ______ provides you with a list of all the databases
show dbs
In MongoDB, the db.collection.______ method is used to delete documents from a collection
remove
In MongoDB, collection.______ method is used to check the newly inserted or updated documents of a collection
find
To create an index, you need to use the ______ method of MongoDB
createIndex
Test your knowledge of database concepts, including DDL, schema, tables, foreign keys, and more!
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free