Examples Using GRANT (Role Form)| SQL Data Control Language | Teradata Vantage - Examples of Using GRANT Role Form - Analytics Database - Teradata Vantage

SQL Data Control Language

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
2023-07-11
dita:mapPath
sgu1628111251052.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dvv1472243528022
lifecycle
latest
Product Category
Teradata Vantageā„¢

The following statements create roles called services and sales:

CREATE ROLE services;
CREATE ROLE sales;

To make sales a nested role of services, use the following GRANT statement:

GRANT sales TO services;

To grant the sales role to user marks, and give marks the privilege to add other members to sales, use the following GRANT statement:

GRANT sales TO marks WITH ADMIN OPTION;