Is Your Database Ready for AI? Take the Quiz

AI
No Comments

Is your database ready for AI? Twelve questions, one point each, and four results at the end. Be honest. Nobody’s watching, and the model will find out anyway.

A glossy magazine quiz page about getting a database ready for AI, with tick boxes, a pencil resting across it, coffee ring in the corner.

Every vendor deck this year says your data is your moat. Nobody’s deck says what state the moat is in.

So here’s a quiz. It’s a checklist with a scoring system, because a checklist gets skimmed and a quiz gets finished.

Score one point for every question you can answer yes to without checking. Half a point if you’d need to look. Zero if you winced.

It’s a checklist with a score on it, not a measurement. Two of the twelve aren’t optional, and they’re marked where they appear.

Part one: does the data mean what it says?

1. Every important column has a definition somewhere a human can read. Not the column name. A sentence. “Status C means completed, X means cancelled, and the four rows with Z are from the 2019 migration.”

2. You know which columns are allowed to be NULL, and why. A model will treat a NULL email as “no email”. Your business may treat it as “we haven’t asked yet”. Those are different customers.

3. The values a model will group by are consistent. If Region contains “North”, “Nth” and “N. Region” from an old migration, a model can split one region into three. It will be confident about all of them. Whether it does depends on the collation and on where the grouping happens.

4. Dates carry their time zone, or everyone agrees on one. A model asked “how many orders yesterday” needs to know which yesterday.

Part two: can anyone find anything?

5. Someone can name the single table that holds customers. Not the four tables that each hold some customers. The one. If there isn’t one, the model will pick, and it’ll pick the wrong one on Tuesdays.

6. The relationships exist in the database, not only in people’s heads. Foreign keys, or at least a document. A model reads keys. It can’t read heads.

7. There’s a query the business already trusts for its most important number. Revenue, active customers, whatever it is. If three queries give three answers today, a model will give a fourth.

Three sticky notes on a monitor, each with a different figure for the same total, and a fourth blank sticky note waiting.

Part three: can it do this safely?

8. A model’s connection can’t write. Not optional. Read-only login, or a replica, or both. If a model can run UPDATE, it will one day run UPDATE.

9. There’s a copy of the data with the sensitive columns masked, and it’s the copy people experiment on. Not optional. The experiment always leaks somewhere. Make sure what leaks is boring.

10. You’d notice if a model ran the same expensive query four hundred times an hour. Query Store on, and someone who looks at it. Models don’t get tired and they don’t get embarrassed.

Part four: can you tell when it’s wrong?

11. You have twenty questions with known correct answers. A small test set. Before any model gets near a customer, it answers all twenty and someone marks them.

12. Someone owns the answer when a model is wrong. A name. Not a team, not a process. A person who’ll get the call and can fix the data or the prompt.

Your result on getting the database ready for AI

Add it up. Twelve is the maximum, and I’ve never met a twelve.

Two gates before the bands. If 8 and 9 are a no, no total makes you ready. A model that can write to production is a security problem. So is one that reads unmasked customer data. Fix those two, then read your band.

10 to 12, with 8 and 9 both yes: Ready, and probably already doing it. Your problem isn’t the database. It’s keeping the twenty test questions up to date as the business changes. Put a date on them.

7 to 9.5: Ready for a pilot, on one question. Pick the most valuable question the business asks. Make sure questions 5, 7 and 11 are a yes for that one question, and go. Widen later.

4 to 6.5: Not yet, and it’s fixable in a quarter. The gaps are almost always in part one. Definitions and consistency. It’s unglamorous work and it’s the actual project. The model is the easy part.

0 to 3.5: Your database isn’t ready for people, either. That’s not an insult. It’s the honest finding, and it means the AI conversation is a distraction from a cleanup that’s overdue anyway. Do the cleanup. The model will still be there.

A hand drawn score card with four result bands, the second band circled in pencil.

What the scoring is doing underneath

Look at which questions cost you points. They cluster.

People who lose points in part one have a data quality problem. Part two, a documentation problem. Part three, a security problem. Part four, a governance problem.

None of those is an AI problem. That’s the point of the quiz. Every one of them existed before the model showed up. The model is the first thing that’s made them expensive enough to fix.

Take it again in six months

Keep the score. Retake it in six months and see which numbers moved.

If none did, the AI project didn’t touch the database. It touched a slide.

I write about systems that answer confidently and the people who have to check them. That’s the subject of my book AI: Nobody’s in There. But we’re still in here. All thirty essays are free to read online, and the paperback is on Amazon.

If you sit in the middle two bands and want the quarter to go faster, that’s the work I do.

Readiness is not a feature you buy, it is a score you can raise.

Published by Pinal Dave on SQLAuthority. More of my work at pinaldave.com.


Discover more from SQL Authority with Pinal Dave

Subscribe to get the latest posts sent to your email.

AI, Data Quality Services, SQL Documentation, SQL Performance
Previous Post
AI Made the Server Cook Thanksgiving Twice

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.