postgress-database Flashcards

1
Q

What is a database schema?

A

a schema describes the rules for how a table can be stored. it is actually the structure of the database

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

What is a table?

A

table is a collection of rows, every row has the same attributes

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

What is a row?

A

a collection of attributes for a single record in a table

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

qna: what is full stack

A

full stack (real engineers call it 3 tier architecture)
- client, server, database

  • loading from your api
  • client (ex httpie) sends an http request to server (ex node/express)
    -the server recieves a request and runs a function
  • that server function may send a query to a database (ex postgresSQL)
  • the database replies to the server with a “result”
  • the server then sends an HTTP response back to the client with data from “result”
  • client -> req -> server -> query -> database -> result -> server -> response -> client
How well did you know this?
1
Not at all
2
3
4
5
Perfectly