teradata

How to extract Stored Procedure body in Teradata

南笙酒味 提交于 2020-02-03 08:25:43
问题 I'm trying to extract Stored procedure DDL by querying system tables. If I run the following query select * from dbc.tvm where TableKind = 'P' both fields RequestText and CreateText contain NULL. Is there any way to query Stored Procedure body apart from using SHOW PROCEDURE? Thank you. 回答1: The DDL (SPL) for the Stored Procedures is not stored in the data dictionary tables. If you do not retain your DDL in a repository for version control you will need to script the SHOW PROCEDURE commands

How to extract Stored Procedure body in Teradata

感情迁移 提交于 2020-02-03 08:25:25
问题 I'm trying to extract Stored procedure DDL by querying system tables. If I run the following query select * from dbc.tvm where TableKind = 'P' both fields RequestText and CreateText contain NULL. Is there any way to query Stored Procedure body apart from using SHOW PROCEDURE? Thank you. 回答1: The DDL (SPL) for the Stored Procedures is not stored in the data dictionary tables. If you do not retain your DDL in a repository for version control you will need to script the SHOW PROCEDURE commands

MAX() and MAX() OVER PARTITION BY produces error 3504 in Teradata Query

只谈情不闲聊 提交于 2020-01-31 08:52:26
问题 I am trying to produce a results table with the last completed course date for each course code, as well as the last completed course code overall for each employee. Below is my query: SELECT employee_number, MAX(course_completion_date) OVER (PARTITION BY course_code) AS max_course_date, MAX(course_completion_date) AS max_date FROM employee_course_completion WHERE course_code IN ('M910303', 'M91301R', 'M91301P') GROUP BY employee_number This query produces the following error: 3504 : Selected

MAX() and MAX() OVER PARTITION BY produces error 3504 in Teradata Query

萝らか妹 提交于 2020-01-31 08:51:30
问题 I am trying to produce a results table with the last completed course date for each course code, as well as the last completed course code overall for each employee. Below is my query: SELECT employee_number, MAX(course_completion_date) OVER (PARTITION BY course_code) AS max_course_date, MAX(course_completion_date) AS max_date FROM employee_course_completion WHERE course_code IN ('M910303', 'M91301R', 'M91301P') GROUP BY employee_number This query produces the following error: 3504 : Selected

javax.naming.NameNotFoundException: While trying to lookup 'jdbc.teradata' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/teradata'

被刻印的时光 ゝ 提交于 2020-01-26 03:39:13
问题 However I could open up the required remote port for Teradata , I am getting this error, is it because the required jdbc driver library is missing in the Weblogic in which I am deploying my Application. Please advise, you can find complete error below. Because of this failure consecutive Spring Autowired Components are also failing. Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'teradataDataSource' defined in ServletContext resource [

Teradata Viewpoint on Teradata Express 16.10 is not working

僤鯓⒐⒋嵵緔 提交于 2020-01-25 06:49:06
问题 I understand we have multiple post regarding viewpoint is not working on TD Express but didn't find solution on it and also those people have issues in starting the viewpoint using vp-control.sh start command but my issue is different. I have installed TD Express 16.10 and everything is working perfectly except viewpoint. I used Viewpoint Start icon to start the viewpoint and it started without any issue, I also checked the status of viewpoint using vp-control.sh status and all services are

getting the number of day in quarter Teradata [closed]

我们两清 提交于 2020-01-25 06:26:04
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I am trying to get Which day of the quarter when you give a current date. For Example if i give 01/25/2012 then the output should be 25. Since it is the 25th day of the quarter. Similarly if i give 02/01/2012 it should give 32 as output. I am able to get the first day of the quarter but not able to

Run multiple queries from 1 SQL file showing result in multiple tables

和自甴很熟 提交于 2020-01-24 16:32:52
问题 I have a set of queries for regression testing. These are basically select statements stored in different files. File Query A SELECT a ... B SELECT b ... C SELECT c ... This means that I have to open up multiple files and run the queries. Is it possible to put these SELECT statements in the same file but show the results in different tables and/or in different result sets? I want to have a file D showing the result from the SELECT statements a,b and c in different tables. (It would be

Row_Number() over 2 billion records (Teradata)

▼魔方 西西 提交于 2020-01-24 09:50:08
问题 I am working with a Teradata warehouse, and I am using row_number in one of my sql scripts. The record set I am trying to use my script on is larger than the maximum of the integer value threshold. What to do in such a situation? (casting the "row_number() over (par..)" expression to bigint did not work) If you have found a solution for this problem in another DBMS, then I also welcome your solution as it might work in Teradata too. 回答1: It is possible that just casting the value would work.

Integrating a teradata database with django models framework

独自空忆成欢 提交于 2020-01-16 09:03:08
问题 We have an external teradata reporting database which we want to create a frontend for generating and querying using django. I've gotten relatively far on just using a direct ODBC connection to the DB and running queries and displaying them on the website, but the further I get into it the more evident it is becoming that I really need to be using the django models framework. My question is does anyone have any experience or insight in how to integrate a teradata database into a django web