Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Portfolio Project - Data Cleaning.sql
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,14 @@ FROM world_layoffs.layoffs_staging2;
SELECT DISTINCT country
FROM world_layoffs.layoffs_staging2
ORDER BY country;

-- I tried this code and it works
select * from layoffs_staging2
where country like '%.%';

update layoffs_staging2
set country = 'United States'
where country like 'United States.%';
-- end of code
UPDATE layoffs_staging2
SET country = TRIM(TRAILING '.' FROM country);

Expand Down