Finals Reviewer pt1 Flashcards

(50 cards)

1
Q

Includes commands to create database objects such as tables, indexes, and views, as well as commands to define access rights to those database

A

Data Definition Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

is a group of database objects such as tables and indexes that are related to each other

A

Schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

is a collection of related data held in a table format within a database

A

Table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Constraint wherein a column or columns are used to establish and enforce a link between the data in two tables

A

Foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Constraint that ensures that no duplicate values are entered in specific columns that do not participate in a primary key

A

Unique

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SQL command used to remove an object such as an index, column or even a table from a database permanently

A

DROP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

command is used to list the contents of a table

A

SELECT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A special operator that we use if we want to check whether an attribute value is within a range

A

BETWEEN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

is a function that returns the current system date for MySQL

A

NOW()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A special operator that we use to check whether a subquery returns any rows

A

EXISTS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A special operator that we use to check whether an attribute value matches any value within a value list

A

IN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A special operator that we use to check whether an attribute value matches a given string

A

LIKE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A like special operator used in MySQL that means any single character NOT within a range or a set

A

[^]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

All changes in the table structure are made by using table command

A

ALTER TABLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

MySQL uses the column command to change a column attribute

A

ALTER

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

this type of subquery can be used anywhere a table is expected, such as when using the “FROM” clause

A

Computed Columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

An SQL Server function that produces a date by adding a specified number to a specified part of date

A

DATEADD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A MySQL function that returns the time between two dates

A

DATEDIFF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

An SQL Server function that returns the specified part of the date requested

A

DATEPART

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

EXTRACT()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

An SQL Server function that will extract the year from a value stored as a SMALLDATETIME data type

18
Q

An SQL Server function that returns the current system date and time

19
Q

The function rounds numbers to a specified number of decimal places

20
Q

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

21
The function returns the **abs**olute **value** of any numeric value
ABS
22
An **SQL** Server function that returns a value **if a table value is null**
ISNULL
23
A function that returns a NULL if **expression1 = expression2.** If the expressions are not equal, then expression is returned
NULLIF
24
An **SQL** Server function that is used to display or return from a result **set the rows that fall at the TOP** of a range specified by an ORDER BY clause
TOP
25
A **MySQL** specialized conversion function that **formats the number** X to a **format** like '#,###,#####', rounded to D decimal places, and returns the result as a string
FORMAT()
26
An **SQL** Server **specialized conversion** function that is also used to explicitly **convert to a given data type**
STR
27
A string function that **returns part of a string**
SUBSTRING
28
An **MySQL** string function that **returns the length (number of characters)** of a desired string excluding **trailing blanks**.
LEN
29
An **SQL** Server string function that returns the string in **UPPERCASE**
UPPER
30
A **MySQL** string function that returns the **starting position of a specified pattern.**
INSTR
31
An **SQL** Server string function that returns the **starting position of a specified pattern.**
CHARINDEX ()
32
A string function that **removes blanks from the end (right)** of a string
RTRIM
33
A **MySQL** function that tests whether an **expression is NULL**
ISNULL
34
An **SQL** Server function **returns a certain percentage of rows** that falls at the top of a specified range
PERCENT
35
A **MySQL** clause that is used in the SELECT statement to **constrain the number of rows** in a result set
LIMIT
36
A part of the **MySQL LIMIT clause** that **specifies maximum number of rows to return**
count
37
An **SQL** Server specialized conversion function that always **converts from a number** (for example, float or numeric) **to a character data type**.
STR
38
An **SQL** Server string function that returns the **length** (number of characters) of a desired string excluding **trailing blanks**
LEN
39
An **SQL** Server string function that returns the string in **LOWERCASE**.
LOWER
40
A **MySQL** string function that returns the substring from the given string before a specified number of **occurrences of a delimiter**
SUBSTRING_INDEX()
41
A string function that **starts from the right of the string expression** or column and returns n characters
RIGHT
42
A string function that **returns part of a string**.
SUBSTRING
43
in **SQL** Server, the ??? table **contains all the values** we updated using the UPDATE command
UPDATE | IDK if SELECT or UPDATE yung tamang sagot
44
in **SQL** Server, the table contains all the values we deleted using the **DELETE command**.
DELETE
45
to **delete or remove a trigger** we use _trigger_name command
DROP TRIGGER
46
in MySQL, the _???_ table contains all the values we deleted using the DELETE command
OLD