getting UDFCALLNAME error
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


getting UDFCALLNAME error Expand / Collapse
Author
Message
Posted 10/21/2009 12:57:25 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 11/17/2009 6:21:50 PM
Posts: 1, Visits: 21
The following query is getting an syntax error as 'expected something like a name or unicode delimited identifier or UDFCALLNAME between ')' and where keyword.

SELECT 111 "id",item,atr1,rprt_format,'Submitted' "status"FROM (
SELECT pkglineitem,atr1,rprt_format FROM TAble1 as a , (
SELECT 'Detail' Rprt_format from Sys_Calendar.Calendar where 1=1 UNION ALL
SELECT 'Monthly' rprt_format from Sys_Calendar.Calendar where 1=1 UNION ALL
SELECT 'Quarterly' rprt_format from Sys_Calendar.Calendar where 1=1 UNION ALL
SELECT 'Summary' rprt_format from Sys_Calendar.Calendar where 1=1 )
WHERE a.userid = 'MikMetz' AND a.moduleId = 'RPT' AND a.pkgname = 'User ID reports')

The result set should look like this:
id item atr1 rprt_format status
111 R01 NONE Detail Submitted
111 R01 NONE Monthly Submitted
111 R01 NONE Quarterly Submitted
111 R01 NONE Summary Submitted
111 R02 NONE Detail Submitted
111 R02 NONE Monthly Submitted
111 R02 NONE Quarterly Submitted
111 R02 NONE Summary Submitted
111 R03 NONE Detail Submitted
111 R03 NONE Monthly Submitted
111 R03 NONE Quarterly Submitted
111 R03 NONE Summary Submitted

I am converting this from Oracle to Teradata. Please help me if the query is wrong.

Thanks and Regards,
TDHelp


Thanks and Regards
Post #17128
Posted 10/27/2009 3:11:54 AM


Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: Yesterday @ 12:42:08 AM
Posts: 74, Visits: 32
Hi,

Please try this.

SELECT 111 "id",item,atr1,rprt_format,'Submitted' "status"FROM (
SELECT pkglineitem,atr1,rprt_format FROM TAble1 as a , (
SELECT 'Detail' Rprt_format from Sys_Calendar.Calendar where 1=1 UNION ALL
SELECT 'Monthly' rprt_format from Sys_Calendar.Calendar where 1=1 UNION ALL
SELECT 'Quarterly' rprt_format from Sys_Calendar.Calendar where 1=1 UNION ALL
SELECT 'Summary' rprt_format from Sys_Calendar.Calendar where 1=1 ) AS B
ON 1=1

WHERE a.userid = 'MikMetz' AND a.moduleId = 'RPT' AND a.pkgname = 'User ID reports')


Strive to success.

Arun.

Post #17165
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 8:12pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.141. 10 queries. Compression Disabled.