From ac96488a819b726fccb3ed4fca3149462deddf72 Mon Sep 17 00:00:00 2001 From: antonioalmeida Date: Sun, 9 Jun 2024 13:51:35 +0200 Subject: [PATCH] fix solution --- week1/README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/week1/README.md b/week1/README.md index 9293f45..fd12a68 100644 --- a/week1/README.md +++ b/week1/README.md @@ -478,8 +478,19 @@ SELECT ... View solution ```sql -SELECT * FROM city WHERE name LIKE '%New '; --- Answer: 6 cities +SELECT * FROM city WHERE name LIKE 'New %'; + +-- +------+-------------+-------------+---------------+------------+ +-- | ID | Name | CountryCode | District | Population | +-- +------+-------------+-------------+---------------+------------+ +-- | 1106 | New Bombay | IND | Maharashtra | 307297 | +-- | 1109 | New Delhi | IND | Delhi | 301297 | +-- | 3793 | New York | USA | New York | 8008278 | +-- | 3823 | New Orleans | USA | Louisiana | 484674 | +-- | 3971 | New Haven | USA | Connecticut | 123626 | +-- | 4044 | New Bedford | USA | Massachusetts | 94780 | +-- +------+-------------+-------------+---------------+------------+ +-- 6 rows in set (0,01 sec) ```