Finals Reviewer pt1 Flashcards

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

A

YEAR()

18
Q

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

A

GETDATE()

19
Q

The function rounds numbers to a specified number of decimal places

A

ROUND

20
Q

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

A

FLOOR

21
Q

The function returns the absolute value of any numeric value

A

ABS

22
Q

An SQL Server function that returns a value if a table value is null

A

ISNULL

23
Q

A function that returns a NULL if expression1 = expression2. If the expressions are not equal, then expression is returned

A

NULLIF

24
Q

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

A

TOP

25
Q

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

A

FORMAT()

26
Q

An SQL Server specialized conversion function that is also used to explicitly convert to a given data type

A

STR

27
Q

A string function that returns part of a string

A

SUBSTRING

28
Q

An MySQL string function that returns the length (number of characters) of a desired string excluding trailing blanks.

A

LEN

29
Q

An SQL Server string function that returns the string in UPPERCASE

A

UPPER

30
Q

A MySQL string function that returns the starting position of a specified pattern.

A

INSTR

31
Q

An SQL Server string function that returns the starting position of a specified pattern.

A

CHARINDEX ()

32
Q

A string function that removes blanks from the end (right) of a string

A

RTRIM

33
Q

A MySQL function that tests whether an expression is NULL

A

ISNULL

34
Q

An SQL Server function returns a certain percentage of rows that falls at the top of a specified range

A

PERCENT

35
Q

A MySQL clause that is used in the SELECT statement to constrain the number of rows in a result set

A

LIMIT

36
Q

A part of the MySQL LIMIT clause that specifies maximum number of rows to return

A

count

37
Q

An SQL Server specialized conversion function that always converts from a number (for example, float or numeric) to a character data type.

A

STR

38
Q

An SQL Server string function that returns the length (number of characters) of a desired string excluding trailing blanks

A

LEN

39
Q

An SQL Server string function that returns the string in LOWERCASE.

A

LOWER

40
Q

A MySQL string function that returns the substring from the given string before a specified number of occurrences of a delimiter

A

SUBSTRING_INDEX()

41
Q

A string function that starts from the right of the string expression or column and returns n characters

A

RIGHT

42
Q

A string function that returns part of a string.

A

SUBSTRING

43
Q

in SQL Server, the ??? table contains all the values we updated using the UPDATE command

A

UPDATE

IDK if SELECT or UPDATE yung tamang sagot

44
Q

in SQL Server, the table contains all the values we deleted using the DELETE command.

A

DELETE

45
Q

to delete or remove a trigger we use _trigger_name command

A

DROP TRIGGER

46
Q

in MySQL, the ??? table contains all the values we deleted using the DELETE command

A

OLD