conversion of oracle code into Teradata
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.


conversion of oracle code into Teradata Expand / Collapse
Author
Message
Posted 2/21/2008 5:27:18 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/14/2008 8:15:26 AM
Posts: 7, Visits: 30
Hi,
Please convert the following oracle code into Teradata...

Thanks in advance.


SET HEAD OFF;
SET FEEDBACK ON;
SET LINESIZE 32767;
SET PAGESIZE 50000;
PROMPT CAMPAIGN NM,CAMPAIGN CD,FLOWCHART NM,CELL CD,COUNT
SELECT '"'||campaign_nm||'","'||
      campaign_cd||'","'||
      flowchart_nm||'","'||
      cell_cd||'",'||
      COUNT(*)
FROM cop_unica_stage_itms a
WHERE campaign_cd  ='&campaign_cd'
AND   flowchart_nm ='&flowchart_nm'
GROUP BY '"'||campaign_nm||'","'||
        campaign_cd||'","'||
        flowchart_nm||'","'||
        cell_cd;


THANKS IN ADVANCE
Post #10657
Posted 2/21/2008 2:11:27 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 9/4/2008 4:08:05 PM
Posts: 91, Visits: 117
You need to use FastExport for large extracts. If your extract is small you can use BTEQ or SQL Assistant.

Since you are using parameters you would have to place them in a file that could be read by the import command.

Refer to teradata documentation for details on these utilities.
Post #10662
Posted 2/22/2008 4:21:02 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/14/2008 8:15:26 AM
Posts: 7, Visits: 30
Hi,
How can i change the following oracle code into Teradata...

PROMPT CAMPAIGN NM,CAMPAIGN CD,FLOWCHART NM,CELL CD,COUNT
SELECT '"'||campaign_nm||'","'||
campaign_cd||'","'||
flowchart_nm||'","'||
cell_cd||'",'||
COUNT(*)
FROM cop_unica_stage_itms
WHERE campaign_cd ='&campaign_cd'
AND flowchart_nm ='&flowchart_nm'


Please send me the exact code if possible...
What is the substitute of PROMPT in teradata?



THANKS IN ADVANCE
Post #10664
Posted 2/22/2008 12:15:09 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 9/4/2008 4:08:05 PM
Posts: 91, Visits: 117
How much will you pay me? ;)
Post #10676
« 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 5:08pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.078. 10 queries. Compression Disabled.