From 88d60e565e2fd43d9bc0aac54614f5563d3be657 Mon Sep 17 00:00:00 2001 From: Jeffrey Elkner Date: Fri, 28 Apr 2023 12:18:46 +0100 Subject: [PATCH] Add formatted select statement --- scripts/select_quotes_formatted.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/select_quotes_formatted.sql diff --git a/scripts/select_quotes_formatted.sql b/scripts/select_quotes_formatted.sql new file mode 100644 index 0000000..cffefad --- /dev/null +++ b/scripts/select_quotes_formatted.sql @@ -0,0 +1,5 @@ +\echo INNER JOIN quote TO author: +SELECT LEFT(qtext, 58) AS "Quote", fname || ' ' || lname AS "Author" +FROM quote +INNER JOIN author +ON quote.aid = author.aid;