Profile    Mohammed Shiroz Status   Loading  
Logo
Share This

My sql
blog and Updates

It's my personal blog and my post about what was my interested in. Not regularly. If you have any questions any discussion, I'm happy you get in touch with me, and try to answer as many as possible!

Blog
Let's See
Back to blog
Filter by:
Tags
//Article

Me vs the "Quick" Database Migration on a Big Table

Me vs the "Quick" Database Migration on a Big Table

Blog Summary

Five lines. Widen a column, add an index. It runs instantly locally. The five stages of a quick migration on a big production table, why it hangs, and the habits that make migrations boring again.

Read more
  • 89
  • 113
  • 25

Handling Money in Code: Integers, Decimals and Rounding Done Right

Handling Money in Code: Integers, Decimals and Rounding Done Right

Blog Summary

In PHP, intval(19.99 * 100) gives you 1998. That missing unit is how money bugs start. Why floats and money don't mix, how to use minor units and DECIMAL columns, and the rounding rules that keep invoices adding up.

Read more
  • 131
  • 131
  • 4

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Unicode and UTF-8: Why Your Text Turns Into Question Marks

Blog Summary

An Arabic name goes in, four question marks come out. Encoding bugs leave fingerprints: here's how to read them, why MySQL's utf8 isn't UTF-8, and the PHP string traps that cut letters in half.

Read more
  • 147
  • 26
  • 17

Database Normalization Explained With a Real Example: Tenants, Units and Contracts

Database Normalization Explained With a Real Example: Tenants, Units and Contracts

Blog Summary

Every messy database starts as a spreadsheet. Take a tenancy contracts sheet through 1NF, 2NF and 3NF step by step, see the anomalies each form removes, and learn when denormalizing on purpose is the right call.

Read more
  • 19
  • 94
  • 18

What Building a Contract Management Module Taught Me About Data Integrity

23 Nov 2025Category : Blog
What Building a Contract Management Module Taught Me About Data Integrity

Blog Summary

A tenancy contract looks like a five-minute table. With 2,000+ contracts in Kate PMS, it's really validation, a state machine, locks against overlapping dates, frozen signed terms and an audit trail.

Read more
  • 128
  • 62
  • 7

Writing SQL You Can Still Read Six Months Later

Writing SQL You Can Still Read Six Months Later

Blog Summary

Every codebase has a query everyone is afraid to touch. Formatting, honest names, CTEs, comments that explain business rules and a first look at window functions turn it into SQL anyone can follow.

Read more
  • 87
  • 60
  • 25

01. About Shiroz

Mohammed Shiroz

Hi, I'm Mohammed Shiroz, a software engineer and AI enthusiast from Sri Lanka who turns ideas into intelligent, real-world solutions. With over 9 years of hands-on experience, I currently lead real estate ERP development at Kate Group, a...

03.My Projects

04. Categories

Ready To Start Your Project ?

Get in Touch
Close