Setting Up the JSON_AGG Examples - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Create and populate table(s) to use in subsequent example(s).

CREATE TABLE emp_table (
	empID 	INTEGER,
	company	VARCHAR(50), 
	empName 	VARCHAR(20),
	empAge	INTEGER);
INSERT INTO emp_table(1, 'company1', 'Cameron', 24); 
INSERT INTO emp_table(2, 'company1', 'Justin', 34); 
INSERT INTO emp_table(3, 'company1', 'Someone', 24);