Concept Flow - Integer types (smallint, integer, bigint)
Choose integer type
smallint: 2 bytes, range -32768 to 32767
integer: 4 bytes, range -2147483648 to 2147483647
bigint: 8 bytes, range -9223372036854775808 to 9223372036854775807
Store value in chosen type
Use value in queries/calculations
You pick one of three integer types based on size and range, then store and use values accordingly.