Slide 38
Slide 38 text
Let’s find out what
the most common
first three letters of
state names is by
including an ORDER
BY
SELECT
substring(name,1,2),
count(*)
FROM
us_states
GROUP BY
substring(name,1,2)
ORDER BY
count(*) DESC
substring count
New 4
Nor 2
Ala 2
etc
So ‘New’ has 4,
which we all
experience from
trying to quickly fill
online address
forms…