Example: Using RepCaptureRulesV - Advanced SQL Engine - Teradata Database

Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-10-15
dita:mapPath
yoz1556235523563.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1092
lifecycle
previous
Product Category
Teradata Vantage™

The following SELECT statement selects all non-default rules defined for a table object:

SELECT GroupName, RulesetName, LikePattern, LikeEscape, NotLikePattern, NotLikeEscape
  FROM DBC.RepCaptureRulesV
  WHERE DefaultOpt = 'N' AND ObjectKind = 'T'
  ORDER BY GroupName, RulesetName, LikePattern, LikeEscape,
  NotLikePattern, NotLikeEscape;

Result:

 GroupName repgroup
  RuleSetName prmtablers
  LikePattern repuser.prmtab%
  LikeEscape ?
NotLikePattern ?
 NotLikeEscape ?
   GroupName repgroup
  RuleSetName subtablers
  LikePattern repuser.subtab%
  LikeEscape ?
NotLikePattern repuser.subtabx%
NotLikeEscape ?