PostgreSQL_Notes


Project maintained by Kellen-Linse Hosted on GitHub Pages — Theme by mattgraham

Filtering, Updating and Deleting Records



Filtering Rows with WHERE

order

  1. Find the database (table) you wish to retrieve information from.
  2. Apply the filtering criteria. (for each row, I only want to consider the rows who’s area is greater than 4000.)
  3. For the remaining rows, give me every value from the names column.

More on the WHERE keyword

comp

lg


Compound WHERE Clauses

between

in

We can make a compound WHERE statement by using the AND keyword:

and


Calculations in WHERE Clauses

calc


Updating Rows

update

updateQ


Deleting Rows

delete

deleteQ


« PREV - NEXT »