پن کیا گیا ٹویٹ
Tom Mitchell
10K posts

Tom Mitchell
@imtommitchell
I help ambitious professionals develop high paying data skills | Ex-Data @ Revolut
Manchester, UK شامل ہوئے Mart 2023
97 فالونگ40.6K فالوورز

I hope you've found this thread helpful.
If you did, I ask for 2 small favours:
1. Follow me @imtommitchell for more like this daily.
2. Click below, jump to the top and share to help someone else.
English

P.S. If you're interested in data you'll love my weekly newsletter.
I share everything I know about building high-paying data skills from my 8+ years in the industry.
Subscribe for free here:
thedatadose.com
English

TL;DR:
- Primary Keys are unique tags for each row of data in a table like customer ID
- Foreign keys act as Part B in the link and can point to a Primary Key (part A) in another table.
- Unique Keys are a column (or columns) that contain unique values. Not the primary identifier.
Thanks for reading.
If you liked this, follow me @imtommitchell for more content like this every day.
English

3. Unique Key
A unique key is similar to a primary key, but it doesn't have to be the main identifier for a table. It's a column (or columns) that contains unique values, like a primary key.
However, a table can have multiple unique keys, while it can only have one primary key.
Unique keys are handy when you want to make sure that certain columns have distinct values, but they don't serve as the primary way to identify each row.
For example, in a customer table, you might have a unique key for email addresses to prevent duplicate email entries.
English

P.S. If you're interested in data you'll love my weekly newsletter.
I share everything I know about building high-paying data skills from my 8+ years in the industry.
Subscribe for free here:
thedatadose.com
English

P.S. If you're interested in data you'll love my weekly newsletter.
I share everything I know about building high-paying data skills from my 8+ years in the industry.
Subscribe for free here:
thedatadose.com
English

P.S. If you're interested in data you'll love my weekly newsletter.
I share everything I know about building high-paying data skills from my 8+ years in the industry.
Subscribe for free here:
thedatadose.com
English

And there you have it - my data cleaning 101.
TL;DR:
- Handle duplicates and missing data
- Fix naming conventions in values and columns.
- Validate and test: does it make sense/look right?
Thank you for your time.
If you got something from this post, consider following me @imtommitchell
I post data-related content daily.
English