Exam Flashcards

(53 cards)

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

23
Q

MySQL funcion adds a specified interval

24
Q

SQL server function calculates the difference between two dates

25
SQL server function extracts the **month part**
MONTH()
26
SQL function returns the **current UTC date**
GETUTCDATE()
27
SQL supports **carious arithmetic** functions for calculations
Arithmetic functions
28
function rounds a number up to the nearest integer
CEILING()
29
SQL server function proivdes a alternative value
ISNULL()
30
SQL Server: Up to _ _ _ characters (depending on the version) MySQL: Up to _ _ characters
SQL Server: Up to 128 characters (depending on the version) MySQL: Up to 64 characters
31
false - 2,200 input and output
32
true - 128MB
33
we can use execute
EXEC
34
the _____ clause is generally used when you have attribute columns combined with aggregate function SELECT statement
having
35
A _____ is a virtual table based on a SELECT query
view | or cursor??
36
____ condition is generally composed of an equality comparison between the foreign key and the primary key of relate tables
join
37
The ____ statement combines rows from two or more queries
union
38
A _____ join performs a relational product
cross
39
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
right join
40
this select subquery is used anywhere **a single value is expected**
scalar subquery
41
When you want to compare a single attribute to a list of values, you use ____ operator
IN
42
____ subquery is a subquery that **executes once for each row in the outer query**
correlated
43
MySQL function that substracts a specified time interval from a date
DATE_SUB()
44
SQL server function that returns the current system date and time in UTC format
GETUTCDATE()
45
clause is used to restrict the groups that will be included in a query result?
Having
46
a ____ "function" can be used to perform an arithmetic operation on a column
+ / Add
47
Which operator finds rows that do not contain a null value in the specified column?
IS NOT NULL
48
Which operator finds rows that do not contain a null value in the specified column?
LIKE
49
Which function determines the number of rows in a table?
COUNT
50
the _____ function returns the next larger integer value when a number contains decimal places
round
51
An SQL Server function that returns a value if a table value is null
IS NULL
52
A _____ parameter is part of a stored procedure that allows it to return a value or multiple values
output
53
How many characers can a stored procedure name contain?
128