Example: Specifying Various MERGEBLOCKRATIO Settings - Teradata Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Database
Release Number
20.00
Publication Date
June 2025
Content Type
SQL Reference
Publication ID
B035-1144-200K
ft:locale
en-US
ft:lastEdition
2026-09-23
dita:mapPath
mbm1747160743883.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
ft:sourceId
dita
dita:id
mdr1472255012272
lifecycle
latest

These examples demonstrate different specifications for the MERGEBLOCKRATIO option. If the DBS Control parameter DisableMergeBlocks is set to TRUE, Teradata Database ignores the setting for this option globally and disables all data block merges for all tables in the system. See Database Utilities, B035-1102.

This example defines emp_table so that the system uses the value for the DBS Control parameter MergeBlockRatio as the merge block ratio when merging data blocks for the table.

CREATE TABLE emp_table, DEFAULT MERGEBLOCKRATIO (
emp_no INTEGER);

This example sets the value of the merge block ratio for emp_table to 25%.

CREATE TABLE emp_table, MERGEBLOCKRATIO=25 PERCENT (
emp_no INTEGER);

This example defines emp_table in a way that disables all data block merges.

CREATE TABLE emp_table, NO MERGEBLOCKRATIO (
emp_no INTEGER);