postgres Flashcards

1
Q

What is PostgreSQL and what are some alternative relational databases?

A

An open-source relational database. Others include MySQL, SQL Server (Microsoft), and Oracle

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

They are good for storing related data. They can store and modify data in a way that makes data corruption as unlikely as possible. Also, they are arguably the most widely used kind of database.

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 / top

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

What is a database schema?

A

A collection of tables that defines how the data in a relational database should be organized

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

What is a table?

A

Where relational databases store data (tables can also be known as relations). A list of rows, each row having the same set of attributes (columns)

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

What is a row?

A

Each row in a table makes a record of the “spreadsheet”

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

What does express.static() return?

A

middleware

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

What is the local __dirname variable in a Node.js module?

A

the directory name of the current module

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

What does the join() method of Node’s path module do?

A

joins all given path segments together

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