Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. scarletAni

    Teradata Certification

    Hi!! The material that NCR offers is enough for the certification. I have taken the Basics and the SQL specialist. At that time my company had the license. But it got expired 3 months back :( You need to know everything thats there in the course for the certification. Ani.
  2. scarletAni

    concatenate character column

    Roger, How have you arrived at 6 joins ? Is it because There are 6 'A' entries ? In that case if we are not sure of hte number of entries for each id 'A', 'B' etc, then how do we arrive at the number of joins ?
  3. scarletAni

    concatenate character column

    I have a table with values 1 the 1 value 1 is 1 one 2 the 2 value 2 two I need the output as 1 The value is one 2 the value two as in the character column containig some description needs to be concatenated. Its if it were an integer, then we can do a SUM and group by. Since its a...
  4. scarletAni

    ODBC Connectivity

    What is the odbc driver to connect to Teradata from .NET ?
  5. scarletAni

    Object DEpendancy

    SHOW <SQL> works for a single SQL stmt only... For Ex : SHOW SELECT * FROM TableA; SELECT * FROM TableB; Gives only TableA defenition... Thats too much information for me... I just need to know the Table names that a procedure uses. SHOW CALL ... Doesn't work !! Thanx for that info...
  6. scarletAni

    Object DEpendancy

    Is there any data dictionary table that will let us know Procedure Name : what objects (views/ tables ) the procedure depends on ? Is there a system table that will give this info ? Need to know this urgently.... Thanx, Ani
  7. scarletAni

    Print option in Queryman

    Thans for all those inputs !! Yeah !! Waiting for a debugger for SPs...
  8. scarletAni

    Print option in Queryman

    I want to print some results in a procedure and check for the correctness of values... REPLACE Procedure A.proc1 (OUT dt1 varchar(10), OUT dt2 Varchar(18)) Begin DECLARE maxdttm_crfh char(18); DECLARE maxdttm_dsth char(18); call A.pr_get_next_asof( 'Temp1', 'Depnd1', :maxdt_dsth...
  9. scarletAni

    Joining on secondary indices

    Since the distribution of datais on the Primary Index, the join on Sec Index will cause the spool to be created. May be you can create global temp table with the sec Index columns are the Primary Index and then try to join.
  10. scarletAni

    User defined Error Messages

    So, ABORT may not work for me. I must try ROLLBACK. How do I check the SQLCODE value once the procedure is complete ?
  11. scarletAni

    User defined Error Messages

    Also how can we check the value 3513 has been assigned to SQLCODE ?
  12. scarletAni

    User defined Error Messages

    Can we use ABORT 'Error Occurred'. Will it shange the value of SQLCODE ?
  13. scarletAni

    User defined Error Messages

    Hi !! Is there any way of raising a user defined exception in Teradata ? I need one and am not able to find relevant material. Can someone help ?
  14. scarletAni

    Error handling in Teradata Procedures

    Dieter, If I use sql_cd it works and exits correctly. This is because of the LEAVE statement within the IF block. Wanted to know more about how the Error handling actually works.
  15. scarletAni

    Droping Duplicate data

    You may not be able to use SELECT name ,phone ,blah1 ,blah2 ,transaction ,blah3 ,blah4 ,CSUM(1,1) AS trs_seq FROM table1 ,table2 ,table3 ,table4 WHERE state =...
  16. scarletAni

    Error handling in Teradata Procedures

    I have the following procedure and want to introduce error handling. Replace procedure appl_distrib_chnl_drv_01.pr_junk(OUT msg_txt VARCHAR(100)) lbl_sls_out_dtl : begin /* Variables for detecting SQL errors */ DECLARE sql_cd INTEGER; DECLARE sql_st CHAR(5); /* Declare continue on to next...
  17. scarletAni

    Wildcard characters

    CVenom , In your case, I have to do the same for each character in the column. ie. SUBSTR(col from 1 for 1), then SUBSTR(col from 2 for 1) etc for each char. This may be tedious. Roger, This CAST(col as integer) still gives me a BAD character or format error.
  18. scarletAni

    Wildcard characters

    When I use CAST to convert into an integer , I get the following error : 621: Bad character in format or data of <tablename> I want to know if there is anything like a IsNumeric() or some wildcard pattern against which we can check.
  19. scarletAni

    Wildcard characters

    Hi !! I have a table with a character column Eg : Junk_tbl junk_id char(20) junk_acct_no char(20) I want to select only those rows which have all integer values in junk_acct_no. i.e junk_acct_no will contain values such as AA1234 123456 V56765 453533 I want the result to...
  20. scarletAni

    double selection of max values in a table

    It works !! I had tried using the max . There is a small correction to the above data. Consider this data 1 A001 1999-10-03 012 1 A001 1999-10-05 011 1 B001 1999-07-04 010 1 B001 1999-07-08 009 2 A001 1999-10-03 012 2 A001 1999-10-05...

Part and Inventory Search

Back
Top