Skip to content

Commit

Permalink
Merge pull request #16 from HackYourFutureBelgium/update-week1-lesson…
Browse files Browse the repository at this point in the history
…-plan-1

Fix solution
  • Loading branch information
antonioalmeida authored Jun 9, 2024
2 parents 49b5aa7 + ac96488 commit 64cb444
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions week1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,19 @@ SELECT ...
<summary>View solution</summary>

```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)
```
</details><br>

Expand Down

0 comments on commit 64cb444

Please sign in to comment.