Databases Flashcards

1
Q

Databases

A

an organized collection of data that can be accessed, managed, and updated

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

relational database

A

a particular type of database built upon the relational model of data

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

Data in a relational database can be accessed and reassembled in many different ways without having to reorganize the data.

A

Each entity is stored in a table.
Columns are called attributes
Rows represent individual records.
Rows represent individual records and consist of many attributes organized using columns.

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

(R)DBMS

A

Relational Database Management System

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

Relational Database Management System

A

is a software application designed to manage a database. It has four basic functions

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

four basic functions Relational Database Management System

A

Data Definition
Data Storage
Data Retrieval
Administration

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

RDBMSs include databases like

A

Oracle, Microsoft Sql Server, PostgreSQL, MySql, are relational, and are commonly called SQL Databases.

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

NoSQL Databases are

A

do not use a relational structure, instead they structure data specific to the problem they are designed to solve.

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

NoSQL databases include

A

MongoDB, Cassandra, Google BigTable, HBase, DynamoDB, and Firebase

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

entity

A

a set of data being stored a table

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

Table

A

defines a set of data elements and the structure to store them. Tables are structured into columns and rows.

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

Columns

A

attributes of a table and define the name and data type. A table has a set number of defined columns

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

Rows

A

the data being stored. A table has an unlimited number or rows.

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

Cell

A

the location where a column and row intersect, and is used to refer to a specific value or row of data (entity).

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

SQL

A

Structured Query Language

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

Structured Query Language

A

a language that lets you access and manipulate databases

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

ANSI-SQL

A

A standard that databases must follow to be considered a SQL Database.

All SQL databases support the ANSI-SQL language, however, most databases extend it with their own proprietary additions.

18
Q

Character Data Types

A

character, varying character, text based data

19
Q

char(#)

A

character. # defined the length of the data.

20
Q

varchar(#)

A

varying character. # defined the length of the data.

21
Q

text

A

text based data that is not limited by a predefined size

22
Q

Numeric Data Types

A

int, bigint, decimal(p, s)

23
Q

int

A

integer - similar to Java’s int

24
Q

bigint

A

Big Integer, similar to Java’s long

25
decimal(p, s)
floating point numbers, similar to Java’s double or BigDecimal
26
p - precision
the total number of digits being stored | 1234.567 has a precision of 7
27
s - scale
number of digits to the right of the decimal point | 1234.567 has a scale of 3
28
boolean
true/false Not the same in all SQL databases Mysql - tinyint(1) PostgreSQL / Oracle - boolean MS Sql - bit
29
DATE
yyyy-mm-dd
30
TIME
hh:mm:ss
31
TIMESTAMP / DATETIME
yyyy-mm-dd hh:mm:ss
32
Structured Query Language (SQL)
A declarative programming language used to manage a database and its data. A declarative programming language specifics what actions should be performed rather than how to perform those actions.
33
DDL
Data Definition Language
34
Data Definition Language
defines the structure of the data
35
DML == SQL
Data Manipulation Language
36
Data Manipulation Language
query and modify the data
37
DCL
Data Control Language
38
Data Control Language
used to administer the database
39
SELECT
clause indicates what columns that you want to get from a database table
40
FROM
clauses indicates which table(s) to retrieve the data from. SELECT name, population FROM country;
41
WHERE
clause is used to filter the rows returned in the results using conditional clauses. SELECT name, population FROM country WHERE population > 100000000;