From 0b890ab2ca3fefd4ac8c5efec361fb557af12586 Mon Sep 17 00:00:00 2001 From: LeonardoPagliacci Date: Wed, 15 Nov 2023 21:15:21 +0000 Subject: [PATCH] lab solved --- .DS_Store | Bin 0 -> 6148 bytes lab | SQL queries 2.sql | 63 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .DS_Store create mode 100644 lab | SQL queries 2.sql diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0= 180; + +-- Get the name and email formatted. +-- Example: Mary SMITH - mary.smith@sakilacustomer.org. +SELECT CONCAT( + UPPER(SUBSTRING(first_name, 1, 1)), + LOWER(SUBSTRING(first_name, 2)), + ' ', + '-', + ' ', + UPPER(last_name), + ' ', + LOWER(email) +) AS formatted +FROM sakila.customer; + +-- What's the length of the longest film title? +SELECT MAX(length) +FROM sakila.film;