PostgresSQL Flashcards

1
Q

What is PostgreSQL and what are some alternative relational databases?

A

PostgreSQL is a powerful, free, open source Relational Database Management System (RDBMS). It is often cited as the most advanced open source database of its kind and is well-liked by the developer community for its robust feature set, standards compliance, and reliability.
mySQL, SQLite

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
  • If you are storing related data, then a relational database is probably a good first choice.
  • A quality of many relational databases is that they support good guarantees about data integrity.
  • Relational databases are arguably the most widely used kind of database. And knowing the SQL language is a very portable skill given that there are so many relational databases driven by almost the same language.
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

Run “sudo service postgresql status” in the terminal

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

What is the difference between pgweb and postgresql?

A

pgweb is the GUI version of postgres.

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

What is a database schema?

A

A collection of tables is called a schema. A schema defines how the data in a relational database should be organized.

Defines the structure of the database.

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

What is a table?

A

Relational databases store data in relations, commonly referred to as tables. A table is a list of rows each having the same set of attributes. For example, all students in a “students” table could have “firstName”, “lastName”, and “dateOfBirth” attributes. Attributes are commonly referred to as columns.

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

What is a row?

A

A set of attributes within a table.
For example, all students in a “students” table could have “firstName”, “lastName”, and “dateOfBirth” attributes.

Each row in a table is a single record of data

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