Terms Flashcards

1
Q

Full Functional Dependency

A

A functional dependency X -> Y is a full functional dependency if removal of any attribute type A from X means that the dependency does not hold anymore.

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

Prime Attribute

A

Add Prime

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

Elementary Prime Attribute

A

Add El Prime

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

Multi-valued Dependency

A

If each X value in X->->Y exactly determines a set of Y values, independently of the other attribute types.

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

Join Dependency

A

Add Join

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

Partial Functional Dependency

A

A functional dependency X -> Y is a partial dependency if an attribute type A from X can be removed from X and the dependency still holds.

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

Transitive Dependency

A

A functional dependency where there is a set of attribute types Z that is neither a candidate key nor a subset of any key of R, and both X->Z and Z->Y hold.

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

Trivial Functional Dependency

A

A functional dependency X->Y, where Y is a subset of X

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

What is SQL

A

A standard language which stands for Structured Query Language

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

What does SQL do

A

SQL is the core of the relational database which is used for accessing and managing a database

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

What is MySQL

A

A database management system

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

DDL

A

Data Definition Language - A subset of SQL that allows you to perform various operations on the database such as CREATE, ALTER, and DELETE objects.

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

DML

A

Data Manipulation Language - A subset of SQL that allows you to access and manipulate data. It helps you to insert, update, delete and retrieve data from the database.

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

DCL

A

Data Control Language - A subset of SQL that allows you to control access to the database. Example – Grant, Revoke access permissions.

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

DBMS

A

Database Management System - a software application that interacts with the user, applications, and the database itself to capture and analyze data.

A DBMS allows a user to interact with the database. The data stored in the database can be modified, retrieved and deleted and can be of any type like strings, numbers, images, etc.

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

Database

A

A structured collection of data

17
Q

Types of DBMS

A
  1. Relational

2. Non-relational

18
Q

Relational DBMS

A

The data is stored in relations (tables). Example – MySQL.

19
Q

Non-relational DBMS

A

There is no concept of relations, tuples and attributes. Example – MongoDB

20
Q

What is a table?

A

A table refers to a collection of data in an organised manner in form of rows and columns.

21
Q

What is a field?

A

Refers to the number of columns in a table.

22
Q

Char vs Varchar

A

Char is fixed length ex char(10).

Varchar is variable length ex varchar(10) can store 2, 4, 5, 8 etc.

23
Q

What are constraints

A

Constraints in SQL are used to specify the limit on the data type of the table. It can be specified while creating or altering the table statement. The sample of constraints are:

NOT NULL
CHECK
DEFAULT
UNIQUE
PRIMARY KEY
FOREIGN KEY
24
Q

Data Integrity

A

defines the accuracy as well as the consistency of the data stored in a database.
It also defines integrity constraints to enforce business rules on the data when it is entered into an application or a database.

25
Q

Clustered Index

A

Used for easy retrieval of data from the database and its faster than non-clustered

Alters the way records are stored in a database as it sorts out rows by the column which is set to be clustered index

One table can only have one clustered index

26
Q

Non-clustered Index

A

Reading from non-clustered index is slower than clustered index

Does not alter the way it was stored but it creates a separate object within a table which points back to the original table rows after searching.

A table can have many non clustered index.

27
Q

Entity

A

A person, place, or thing in the real world about which data can be stored in a database. Tables store data that represents one type of entity. For example – A bank database has a customer table to store customer information. The customer table stores this information as a set of attributes (columns within the table) for each customer.

28
Q

Relationship

A

Relation or links between entities that have something to do with each other. For example – The customer name is related to the customer account number and contact information, which might be in the same table. There can also be relationships between separate tables (for example, customer to accounts).

29
Q

Index

A

Refers to a performance tuning method of allowing faster retrieval of records from the table. An index creates an entry for each value and hence it will be faster to retrieve data.

30
Q

Unique Index

A

This index does not allow the field to have duplicate values if the column is unique indexed. If a primary key is defined, a unique index can be applied automatically.

31
Q

Trigger

A

a special type of stored procedures that are defined to execute automatically in place or after data modifications. It allows you to execute a batch of code when an insert, update or any other query is executed against a specific table.

32
Q

Types of Operators

A
  1. Arithmetic
  2. Logical
  3. Comparison
33
Q

NULL value

A

NULL value represents a value which is unavailable, unknown, assigned or not applicable whereas a zero is a number and blank space is a character.

34
Q

Subquery

A

A subquery is a query inside another query where a query is defined to retrieve data or information back from the database. In a subquery, the outer query is called as the main query whereas the inner query is called subquery. Subqueries are always executed first and the result of the subquery is passed on to the main query. It can be nested inside a SELECT, UPDATE or any other query. A subquery can also use any comparison operators such as >,< or =.