Advanced High Comp Databases Flashcards

1
Q

What is the scope of a project?

A

The scope clarifies what the project must cover.

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

What are the boundaries of a project?

A

The boundaries clarify what the project will not cover.

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

What are the 4 things a project can be constrained by?

A

Time, Scope, Cost, Legal (compatibility with GDPR, etc)

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

What are the 4 types of feasibility study?

A

Technical, Economic, Legal, Time

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

When is a dashed line that points towards the dependent use case used in a Use Case Diagram?

A

This is when «include» is used to show a dependency between a Base Use Case & a Dependent Use Case.

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

When is a dashed line that points toward the Base Use Case used in a Use Case Diagram?

A

This is when «extend» is used to show a dependency between a Base Use Case & a Dependent Use Case. Certain criteria must be met before this is actioned (ran).

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

When is a dashed line used in an ER Diagram?

A

To show a weak relationship.

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

When the end of a relationship is marked with a crossed line in an ER diagram, what does this mean?

A

Mandatory relationship: is required in the relationship.

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

When the end of a relationship in an ER Diagram is marked with a circle, what does this mean?

A

Optional relationship: is optional in the relationship.

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

What is a weak entity?

A

An entity that relies on an Owner Entity (entity that provides it with a foreign key) to create a primary key.

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

What are the 5 new SQL datatypes?

A

VARCHAR (basically size), INTEGER(TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT), FLOAT, DATE, TIME

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

What is the HAVING clause used for in SELECT statements?

A

It’s used as a filter for groups of rows or aggregated data.

AKA: MIN, MAX, AVG, SUM, COUNT.

(Often used with the group by clause so that data is selected based on a specified condition)

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

What does the NOT clause do?

A

Reverses or negates a condition in a query:

EG: NOT( name = “Mylo Turnbull”)

this will provide results where the name is not my name.

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

What does the BETWEEN clause do?

A

Specify whether a value is within a range:

EG: WHERE number BETWEEN “5” AND “8”

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

What does the IN clause do?

A

IN is used in replacement of the OR clause, to specify multiple values you want in the WHERE clause.

EG: WHERE number IN(1, 2, 3)

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

What does the ANY operator do when used with a subquery?

A

It means return TRUE if the comparison is TRUE for any of the values in the subquery.

17
Q

What does the EXISTS operator do when used with a subquery?

A

A subquery will instead return a Boolean value of TRUE or FALSE.

If a subquery returns any rows, EXISTS will return TRUE, otherwise it will return FALSE.