CS 3550 Flashcards

1
Q

Differences between Conceptual, Logical, and Physical design

A

The conceptual model is to establish the entities, their attributes, and their relationships. The logical data model defines the structure of the data elements and set the relationships between them. The physical Data Model describes the database-specific implementation of the data model.

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

Normalization

A

Database normalization is the process of structuring a database, usually a relational database, in accordance with a series of so-called normal forms in order to reduce data redundancy and improve data integrity

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

Top down vs Bottom up database design

A

The top-down method starts from the general and moves to the specific. Basically, you start with a general idea of what is needed for the system and then ask the end-users what data they need to store. … The bottom-up approach begins with the specific details and moves up to the general.

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

Collation

A

In database systems, Collation specifies how data is sorted and compared in a database. Collation provides the sorting rules, case, and accent sensitivity properties for the data in the database.

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

Index

A

An index is a database structure that you can use to improve the performance of database activity. A database table can have one or more indexes associated with it. An index is defined by a field expression that you specify when you create the index.

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

Stored procedure

A

is a subroutine available to applications that access a relational database management system (RDBMS). Such procedures are stored in the database data dictionary.

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

Stored procedure returns

A

it returns an integer value and this value indicates the execution status of the stored procedure. … The second result set displays the stored procedure return value

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

difference between user defined function and stored procedure

A

The user defined function will only allow input of parameters but does not support output of the same parameters. Stored procedure, on the contrary, supports both input and output parameters. The UDF also does not allow for the use of try-catch blocks.

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

Scalar vs table return

A

User-defined Scalar Functions (SFs) return a single scalar data value of the type defined in the RETURNS clause. … Inline Table-valued functions (ITVFs) have no function body; the scalar value that is returned is the result of a single statement without a BEGIN

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

Triggers

A

A SQL trigger is a database object which fires when an event occurs in a database. We can execute a SQL query that will “do something” in a database when a change occurs on a database table such as a record is inserted or updated or deleted

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

Trigger vs check contraints

A

Check constraints are fired with each row. Triggers can be written so all inserted rows are checked as a single batch and that is often faster. Also, a trigger can be written so it is only fired if some column(s) of interest are set/modified

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

Cursor

A

A SQL cursor is a database object that retrieves data from result sets one row at a time. The cursor in SQL can be used when the data needs to be updated row by row.

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

How should NoSQL be used?

A

Fast-paced Agile development.
Storage of structured and semi-structured data.
Huge volumes of data.
Requirements for scale-out architecture.
Modern application paradigms like microservices and real-time streaming.

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