liveBook · Manning

Select

As explained in Build Python Web Apps with Streamlit

SELECT FROM is a SQL query form that retrieves rows and selected fields from one or more tables.

SELECT retrieves data from populated tables. Choose every column with *, choose specific columns by name, and narrow returned rows with WHERE. section 8.2.4

Build queries incrementally:

  • Add WHERE conditions to filter rows: author = 'alice' AND text LIKE '%fox%'. LIKE matches text containing fox; % represents zero or more characters. section 8.2.4

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains columns, WHERE, AND, and LIKE with worked queries, while deferring aggregation and summary statistics.
Examples
Demonstrates users and haikus queries, including selecting all fields, selected fields, and fox-matching rows.
What it assumes
Requires populated database tables and familiarity with table and column names.
What you can do after
Apply it via PostgreSQL to retrieve chosen fields and filter rows by exact and text-matching conditions.
How it connects
Connects SELECT with tables, columns, WHERE clauses, AND conditions, and LIKE text matching.

Also explained in

Compare how 5 books explain select →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.