I'm working with some SQL and trying to understand what is going on.
Within the select there are what seem like variables s.id s.status
with
last_transactions as (
select
s.id as station_id,
s.status as status,
case...........
What are these s. items and how do they work?
.notation is used to reference columns mainly of a table, view etc. schema objects or an aliased name of a schema object as above you have used s as alias name of some table so usings.the part after dot references to the column in that s or table aliased