Hi,
I am new to Teradata and I have been working lately on creating volatile tables. Am currently using Teradata Studio Express for Mac. (Teradata 13.10). I have not been successful in creating volatile tables. This is a sample query that am trying to execute:
CREATE VOLATILE TABLE test_volatile
(
HIGHEST_SALARY INTEGER,
AVERAGE_SALARY INTEGER,
LOWEST_SALARY INTEGER
)
primary index(highest_salary)
ON COMMIT PRESERVE ROWS;
The output message that I get is as follows:
Executed as Single statement.
Elapsed time = 00:00:00.108
STATEMENT 1: COMMIT completed. 0 rows processed.
However, when i try to query data from the above table:
select * from test_volatile / SELECT COUNT(*) from test_volatile;
I get the following message:
Executed as Single statement. Failed [3807 : 42S02] Object 'test_volatile' does not exist.
Elapsed time = 00:00:00.079
STATEMENT 1: Select Statement failed.
Am I doing something wrong here?
- Ditaya
Hi,
I am new to Teradata and I have been working lately on creating volatile tables. Am currently using Teradata Studio Express for Mac. (Teradata 13.10). I have not been successful in creating volatile tables. This is a sample query that am trying to execute:
CREATE VOLATILE TABLE test_volatile
(
HIGHEST_SALARY INTEGER,
AVERAGE_SALARY INTEGER,
LOWEST_SALARY INTEGER
)
primary index(highest_salary)
ON COMMIT PRESERVE ROWS;
The output message that I get is as follows:
Executed as Single statement.
Elapsed time = 00:00:00.108
STATEMENT 1: COMMIT completed. 0 rows processed.
However, when i try to query data from the above table:
select * from test_volatile / SELECT COUNT(*) from test_volatile;
I get the following message:
Executed as Single statement. Failed [3807 : 42S02] Object 'test_volatile' does not exist.
Elapsed time = 00:00:00.079
STATEMENT 1: Select Statement failed.
Am I doing something wrong here?
- Ditaya