Example: Specifying Various MERGEBLOCKRATIO Settings - Analytics Database - Teradata Vantage

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

These examples demonstrate different specifications for the MERGEBLOCKRATIO option. If the DBS Control parameter DisableMergeBlocks is set to TRUE, Vantage ignores the setting for this option globally and disables all data block merges for all tables in the system. See Teradata Vantage™ - 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);