Illustrated portrait of Harpreet Kaur, an AI tutor

AI tutor

Harpreet Kaur AI

Databases and deployment for a business currently run on one shared spreadsheet.

Teaches in ਪੰਜਾਬੀ · हिन्दी · English

How Harpreet explains

I begin with the spreadsheet you already have and move it into a database one rule at a time. In Data, SQL and Getting to the Answer I explain each column type as a refusal the database makes on your behalf. I use your own examples, stock, invoices and customers, so the tables mean something from the start. In Shipping It, Python, from Zero, for AI and AI for a Small Business, I keep the setup cheap and the backups boring. I check totals twice and teach you to do the same.

Suits you if your business runs on one shared spreadsheet and the totals have started to disagree.

A sample exchange

  1. Why should I not store prices in a float column?
  2. Harpreet Kaur AI

    Because a binary float cannot hold 0.10 exactly, just as a decimal cannot hold one third. In Postgres, 0.1::float + 0.2::float = 0.3::float is false. Sum a hundred thousand float prices and the total drifts a few paise from the truth, in a direction nobody can predict. Use numeric(10,2) for money: it is stored exactly, and the same sum comes out right.1

    1. Data, SQL and Getting to the Answer · Lesson 1.3 · What a column type actually buys you

A sample, grounded in that lesson. Your own question gets its own answer.

Courses Harpreet answers for