Question

I'm working in a sandbox with many many views. The views that concern me, of which there are about 10, are half way down a list on my left handside in my SQL client, which is Teradata.

I wanted to create a "dummy" view that I could use to quickly find my views by eye balling on the left hand side.

I just cut n paste the query for a previous view I had created but changed the name:

CREATE VIEW  RDMAVWSANDBOX.VwNIM00000000000000000000000000000000000000000000000 AS
SELECT VwNIMEventFct.NIM_USER_ID, COUNT(VwNIMEventFct.NIM_EVENT_TYPE_ID) AS DownloadCount
FROM RDMAVWSANDBOX.VwNIMEventFct
WHERE NIM_EVENT_TYPE_ID = 884
GROUP BY NIM_USER_ID

All those zeros are intentional, I want this table to stick out when I'm scrolling down the views.

But it does not create the view. I tried it with three 0's and it does.

Why!? Can I adjust settings somewhere? It seems Teradata will not allow me to create this view and it appears as though it's to do with the name being too long.

Was it helpful?

Solution

Teradata has a 30 character Limit for field names unless version TD14.10 or above. Thanks @dnoeth for the info

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top