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;