Database Management Systems
40 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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.

<p>NOW</p> Signup and view all the answers

The ______ operator is used to check whether an attribute value matches a given string.

<p>LIKE</p> Signup and view all the answers

The ______ function produces a date by adding a specified number to a specified part of date in SQL Server.

<p>DATEADD</p> Signup and view all the answers

The ______ function returns the time between two dates in MySQL.

<p>DATEDIFF</p> Signup and view all the answers

The ______ command is used to list the contents of a table.

<p>SELECT</p> Signup and view all the answers

The ______ function returns the absolute value of any numeric value

<p>ABS</p> Signup and view all the answers

The ______ function returns the starting position of a specified pattern in MySQL

<p>LOCATE/INSTR</p> Signup and view all the answers

The ______ function is used to return a single part of a date/time, such as year, month, day, hour, minutes, etc. in MySQL

<p>EXTRACT</p> Signup and view all the answers

The ______ function rounds numbers to a specified number of decimal places

<p>ROUND</p> Signup and view all the answers

The ______ function returns the length (number of characters) of a desired string excluding trailing blanks in MySQL

<p>LENGTH</p> Signup and view all the answers

The ______ function returns the string in UPPERCASE in SQL Server

<p>UPPER</p> Signup and view all the answers

The ______ function returns the next lower integer value when a number contains decimal places

<p>FLOOR</p> Signup and view all the answers

The ______ function returns the current system date and time in SQL Server

<p>GETDATE</p> Signup and view all the answers

A ______ parameter is part of a stored procedure that allows it to accept values and serve as variables.

<p>input</p> Signup and view all the answers

A ______ parameter is part of a stored procedure that allows it to return a value and serve as variables.

<p>output</p> Signup and view all the answers

In SQL Server, we can use execute, the actual name of the procedure or ______ to execute the stored procedure.

<p>exec</p> Signup and view all the answers

A ______ temporary table is visible only to the session that it is created from and is dropped automatically when the connection is closed.

<p>local</p> Signup and view all the answers

??? temporary tables are available to all users and are automatically dropped when the last user accessing the table disconnects from the database.

<p>global</p> Signup and view all the answers

??? functions are often used as 'parameterised views' as they can be included in place of tables in a query and can accept arguments.

<p>Table-valued</p> Signup and view all the answers

??? functions contain a single statement, which must be a SELECT. The results of the query become the return value of the functions.

<p>Scalar</p> Signup and view all the answers

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.

<p>Full</p> Signup and view all the answers

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.

<p>full</p> Signup and view all the answers

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.

<p>differential</p> Signup and view all the answers

The purpose of a transaction ______________ is to store a series of logs that provide the history of every modification of data, in a database.

<p>log</p> Signup and view all the answers

A ______________ backup allows the database to be recovered to a specific point in time.

<p>point-in-time</p> Signup and view all the answers

______________ are temporary storage areas in primary memory used to speed up disk operations.

<p>buffers</p> Signup and view all the answers

______________ logging ensures in case of a failure, the database can later be recovered to a consistent state, using the data in the transaction log.

<p>write-ahead</p> Signup and view all the answers

A ______________ database is a structured data that provides more functionality but gives less performance.

<p>relational</p> Signup and view all the answers

In ______________ databases, nodes and edges are the data model used.

<p>graph</p> Signup and view all the answers

Data is retrieved using the direct request method (provide the ______ and get the data) in this type of NoSQL databases data model

<p>key</p> Signup and view all the answers

MongoDB stores documents on disk in the ______ serialization format

<p>BSON</p> Signup and view all the answers

When comparing values of different BSON types, the lowest datatype is ______

<p>MinKey</p> Signup and view all the answers

The default database of MongoDB is ______

<p>admin</p> Signup and view all the answers

The command ______ provides you with a list of all the databases

<p>show dbs</p> Signup and view all the answers

In MongoDB, the db.collection.______ method is used to delete documents from a collection

<p>remove</p> Signup and view all the answers

In MongoDB, collection.______ method is used to check the newly inserted or updated documents of a collection

<p>find</p> Signup and view all the answers

To create an index, you need to use the ______ method of MongoDB

<p>createIndex</p> Signup and view all the answers

More Like This

Bases de Datos Fundamentales
10 questions
Relational Database Management Systems
24 questions
Use Quizgecko on...
Browser
Browser