Exam Flashcards

1
Q

includes commands to create 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

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

A

Table

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

type of constraint. . to extablish and enforce a link

A

Foreign Key

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

type of constraints that ensures. . no duplicate values

A

Unique Constraint / Unique

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

what sql command is used to remove an object

A

DROP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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
8
Q

is a function that returns the current system date for MySQL

A

CURDATE()

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

wheter an attribute value is within a range

A

BETWEEN

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

subquery returns any rows

A

EXISTS

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

the highest maximmum value in the table

A

MAX()

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

the toal sum for any specified attribute

A

SUM()

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

when you have attribute columns combined with aggregate functions

A

GROUP BY

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

condition is generally composed of an equality comparison between

A

Referential Integrity Constraint (RIC)

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

type of join wherein a table is connected to itself

A

Self join

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

type of outer join wherein it will show all rows

A

Right outer join

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

statement combines rows from two or more queries

A

UNION

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

join performs a relational product

A

Cartesian Join

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

this select subquery is used anywhere a single value is expected

A

Scalar subquery

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

operator allows you to check if a single value exists

A

IN operator

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

one way of reading every row in a table and comparing values in each row against related data

A

Correlated subquery

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

type of subquery runs once for each row in the outer query, using values

A

DATE_ADD()

23
Q

MySQL funcion adds a specified interval

A

DATEDIFF()

24
Q

SQL server function calculates the difference between two dates

A

DATE_SUB()

25
Q

SQL server function extracts the month part

A

MONTH()

26
Q

SQL function returns the current UTC date

A

GETUTCDATE()

27
Q

SQL supports carious arithmetic functions for calculations

A

Arithmetic functions

28
Q

function rounds a number up to the nearest integer

A

CEILING()

29
Q

SQL server function proivdes a alternative value

A

ISNULL()

30
Q

SQL Server: Up to _ _ _ characters (depending on the version)
MySQL: Up to _ _ characters

A

SQL Server: Up to 128 characters (depending on the version)
MySQL: Up to 64 characters

31
Q

false - 2,200 input and output

A
32
Q

true - 128MB

A
33
Q

we can use execute

A

EXEC

34
Q

the _____ clause is generally used when you have attribute columns combined with aggregate function SELECT statement

A

having

35
Q

A _____ is a virtual table based on a SELECT query

A

view

or cursor??

36
Q

____ condition is generally composed of an equality comparison between the foreign key and the primary key of relate tables

A

join

37
Q

The ____ statement combines rows from two or more queries

A

union

38
Q

A _____ join performs a relational product

A

cross

39
Q

a type of outer join wherein it will show all rows from the right table regardless if there’s a match on the left table

A

right join

40
Q

this select subquery is used anywhere a single value is expected

A

scalar subquery

41
Q

When you want to compare a single attribute to a list of values, you use ____ operator

A

IN

42
Q

____ subquery is a subquery that executes once for each row in the outer query

A

correlated

43
Q

MySQL function that substracts a specified time interval from a date

A

DATE_SUB()

44
Q

SQL server function that returns the current system date and time in UTC format

A

GETUTCDATE()

45
Q

clause is used to restrict the groups that will be included in a query result?

A

Having

46
Q

a ____ “function” can be used to perform an arithmetic operation on a column

A

+ / Add

47
Q

Which operator finds rows that do not contain a null value in the specified column?

A

IS NOT NULL

48
Q

Which operator finds rows that do not contain a null value in the specified column?

A

LIKE

49
Q

Which function determines the number of rows in a table?

A

COUNT

50
Q

the _____ function returns the next larger integer value when a number contains decimal places

A

round

51
Q

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

A

IS NULL

52
Q

A _____ parameter is part of a stored procedure that allows it to return a value or multiple values

A

output

53
Q

How many characers can a stored procedure name contain?

A

128