Postgres Flashcards
What is PostgreSQL and what are some alternative relational databases?
MongoDB (NoSQL), MySQL, Microsoft SQL Server, Oracle, IBM
What are some advantages of learning a relational databases?
Structures, relationships, data integrity, simple, normalization
What is one way to see if PostgreSQL is running?
top, status
What is a database schema?
How data should be organized
What is a table?
Relations
What is a row?
data
What is SQL and how is it different from languages like JavaScript?
Structured Query Language, declarative language, describing the results they want
How do you retrieve specific columns from a database table?
select column
How do you filter rows based on some specific criteria?
where
What are the benefits of formatting your SQL?
Readability
What are four comparison operators that can be used in a where clause?
less than
greater than
equal
not equal
How do you limit the number of rows returned in a result set?
limit
How do you retrieve all columns from a database table?
*
How do you control the sort order of a result set?
order by … asc/desc
How do you add a row to SQL table?
INSERT INTO