PostgreSQL Flashcards

1
Q

What is PostgreSQL and what are some alternative relational databases?

A

an open source Relational Database management system. it is the most advanced open source databased of its kind. MongoDB, Redis, Neo4j (nosql)

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

What are some advantages of learning a relational database?

A

widely used (tim: they’re everywhere!) and make good data integrities (source: lecture)

when working with datas that are interconnected to each other. Something with relationship.

They provide good guarantees about data integrity.
Can store and modify data in a way that makes data corruption as unlikely as possible.

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

What is one way to see if PostgreSQL is running?

A

sudo service postgresql status also in top

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

What is a database schema?

A

defines how the data in a relational database should be organized. (collections of tables) => to build database (schema is like a blue print on how to make a table too)

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

What is a table?

A

is a list of rows each having the same set of attributes

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

What is a row?

A

row contains all the attributes/columns

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