17.00 - Example: Using RepCaptureRulesV - Teradata Database

Teradata Vantage™ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

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 ?