Practical SQL, 2nd Edition
A Beginner's Guide to Storytelling with Data
PracticalSQL, 2nd Edition by Anthony DeBarros is available from No Starch Press.
Chapter 18: Using PostgreSQL from the Command Line
Covers how to use text commands at your computer’s command prompt to connect to your database and run queries.