MyMisPal
← ERP lessons
Lesson 5 of 10

Master data: the heart of the system

ERP data comes in two kinds:

TypeDefinitionExamples
Master dataFairly stable; entered once and used thousands of times.Customers, vendors, products, employees, chart of accounts
Transactional dataCreated daily by operations; every transaction points to master data.Sales orders, invoices, stock moves, journal entries

Master data quality decides whether the system succeeds. If the same customer exists twice (“Al Waha Store” and “Al Waha Trading”), sales reports split, credit limits are exceeded and collections get confused. That's why most ERP projects spend a lot of time cleaning data before migrating it.

The chart of accounts is finance's most important master data: a numbered list of every account (assets, liabilities, equity, revenue, expenses). Every entry the system posts goes to accounts from this list.

Under the hood, an ERP is a relational database like the ones in the SQL track. Odoo, for example, runs on PostgreSQL: customers live in res_partner, sales orders in sale_order and their lines in sale_order_line. So this query returns each customer's total sales:

SQL · PostgreSQL
SELECT p.name, SUM(o.amount_total) AS total_sales
FROM sale_order o
JOIN res_partner p ON p.id = o.partner_id
WHERE o.state = 'sale'
GROUP BY p.name
ORDER BY total_sales DESC;
Watch outThat's why an ERP consultant who knows SQL is far stronger: they can verify migrated data, build reports the screens don't offer, and track down errors fast. (In real systems, changes go through the application, not straight into the database.)
Spotted a mistake on this page, or have an idea to improve the site?