postgres Flashcards

1
Q
  1. What is PostgreSQL and what are some alternative relational databases?
A

a. PostgreSQL is a powerful, free, open source Relational Database Management System (RDBMS).
b. 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.
c. Other popular relational databases include MySQL (also free), SQL Server by Microsoft, and Oracle by Oracle Corporation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. What are some advantages of learning a relational database?
A

a. Because of the frequency of use, by using relational databases, you are learning how a large portion of databases are utilized.
b. A quality of many relational databases is that they support good guarantees about data integrity.
c. They can store and modify data in a way that makes data corruption as unlikely as possible.
d. This means that developers can set up their database to reject “bad” data and not worry about data being “half written”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. What is one way to see if PostgreSQL is running?
A

a. Check the status of postgresql by using the command:
i. sudo service postgresql status
ii. in the terminal.
iii. Note – anything that runs under service, runs in the background and can be run in any portion of the terminal without hogging up the terminal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. What is a database schema?
A

a. The schema defines the STRUCTURE of a database.
b. A collection of tables is called a schema.
c. A schema defines how the data in a relational database should be organized.
d. In relational databases, you typically have to define your schema up front and the database server will make sure that any data being written to the database conforms to that schema.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. What is a table?
A

a. Relational databases store data in relations, commonly referred to as tables.
b. A table 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
  1. What is a row?
A

a. Each row in a table is a single record of data.
b. This is similar with working with classes in OOP.

c. The table is defined by what attributes or columns each row or column should have
d. And each row is one instance of all of the attributes that a table has.

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