User Profile

Collapse

Profile Sidebar

Collapse
Shrutisinha
Shrutisinha
Last Activity: Aug 15 '07, 07:55 PM
Joined: Feb 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Shrutisinha
    started a topic Removing carriage returns
    in Perl

    Removing carriage returns

    Hi guys

    I am trying to remove carriage return /space in perl from my file
    using this function :
    $record =~ s/[\r\n\r]+/ /g; OR
    chomp($record);

    nothing is working , can anybody help me please with this
    See more | Go to post

  • Shrutisinha
    replied to need help with dates in teradata
    not working still :(
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    replied to need help with dates in teradata
    well STATUS_EFF_DT is a date record .. so that not the problem.. thanks
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    started a topic need help with dates in teradata

    need help with dates in teradata

    Please somebody could help me with dates .. its giving me error thanks
    select c.bill_dt from
    emp c,dept b
    where c.ban=b.ban
    and c.BILLED_DT Between (add_month(b.ST ATUS_EFF_DT,-1)
    And b.STATUS_EFF_DT
    See more | Go to post
    Last edited by Shrutisinha; May 31 '07, 02:43 PM. Reason: signature

  • Shrutisinha
    started a topic Create table as copy of existing table

    Create table as copy of existing table

    Hi Guys
    Really need your help I donno what I am doing wrong in here
    Want to create a table with another existing table
    Here is the syntax I am using

    create table pctemp1
    As
    (SELECT distinct a.Promo,b.Ban,b .[Ban Status],
    b.[BAn Statys Reson Code],b.[Last Ban Status Date]
    FROM PC_FUSION_07042 4 a
    LEFT OUTER JOIN ARCL05_070423 b
    ON a.BAN = b.BAN
    WHERE b.BAN is not...
    See more | Go to post

  • Shrutisinha
    started a topic Create Table Syntax

    Create Table Syntax

    Hi Guys
    Really need your help I donno what I am doing wrong in here
    Want to create a table with another existing table
    Here is the syntax I am using

    create table pctemp1
    As
    (SELECT distinct a.Promo,b.Ban,b .[Ban Status],
    b.[BAn Statys Reson Code],b.[Last Ban Status Date]
    FROM PC_FUSION_07042 4 a
    LEFT OUTER JOIN ARCL05_070423 b
    ON a.BAN = b.BAN
    WHERE b.BAN...
    See more | Go to post
    Last edited by Shrutisinha; May 2 '07, 12:31 PM. Reason: add the sgnature

  • Shrutisinha
    started a topic syntax error near unexpected token `('

    syntax error near unexpected token `('

    I am getting this error in unix ..
    syntax error near unexpected token `('
    when i am running my parser , can anybody help me plzz .. i am new to all this

    thanks
    See more | Go to post

  • Shrutisinha
    replied to Running script on Unix. Created on DOS.
    in Perl
    its working thanks a lot :)...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    replied to Running script on Unix. Created on DOS.
    in Perl
    I found dos2unix,but I do not know how to properly implement it
    my code is all fallows ... i do have ^M, plz help me

    # Declare the subroutines^M
    sub trim($);^M
    sub ltrim($);^M
    sub rtrim($);^M
    ^M
    # Perl trim function to remove whitespace from the start and end of the string^M
    sub trim($)^M
    {^M
    my $string = shift;^M
    $string =~ s/^\s+//;^M
    ...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    started a topic Running script on Unix. Created on DOS.
    in Perl

    Running script on Unix. Created on DOS.

    Hi
    please anybody can help me again !!!

    I created a code in perl(which parse my current file) but using dos evniornment , now want to run same code made in perl but in Unix
    do i have to change any coding ??

    I can put the code if somebody can help me plzz
    See more | Go to post
    Last edited by Shrutisinha; Apr 20 '07, 01:47 PM. Reason: put signature

  • Shrutisinha
    replied to Removing commas from numbers
    in Perl
    thanks a lot .. it worked , thanks you lot guys for all your help...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    replied to Removing commas from numbers
    in Perl
    Do i have to put in loop bez all my number don't have ","
    some are 800.50
    765.34
    1,234.80
    so nervious with perl
    thanks...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    started a topic Removing commas from numbers
    in Perl

    Removing commas from numbers

    I need a help in perl as very new to perl
    I have balance 1,00.00 and want to change it to 1000.00
    I want to remove "," from my balance
    I am doing parsing my orignal record has a "," in my balance and want to remove that come
    I can't understand what can i do to remove that in perl, may be there is replace fuction or something , somebody plese help me with this issue

    Thanks
    See more | Go to post
    Last edited by Shrutisinha; Apr 18 '07, 05:31 PM. Reason: add signature and change title name

  • Shrutisinha
    replied to help me with update
    b doesn't exist...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    started a topic help me with update

    help me with update

    i want to update 2 coloums balance and methord type and its showing me error , some plz help me

    UPDATE CREDIT_SRVCS_TA BLES.Baseline
    SET BALANCE = b.BALANCE,
    PAYMENT_TYPE = b.PAYMENT_TYPE
    Where ban IN (
    Select Distinct b.ban
    From CREDIT_SRVCS_TA BLES.Baseline a
    INNER JOIN CREDIT_SRVCS_TA BLES.Weekly b
    ON a.BAN=b.BAN
    Where a.End_dt is Not Null )
    See more | Go to post

  • Shrutisinha
    replied to Use Of Between Operator In Teradata
    select * from emp H
    where H.BILLED_DT BETWEEN Max(H.BILLED_DT ) AND add_months(Max( H.BILLED_DT),-1)

    ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    replied to Use Of Between Operator In Teradata
    select * from emp H
    where H.BILLED_DT BETWEEN Max(H.BILLED_DT ) AND add_months(Max( H.BILLED_DT),-1)

    ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    replied to I need a help in TERADATA
    well u don't need value clause when u are using select statment...
    See more | Go to post

    Leave a comment:


  • Shrutisinha
    started a topic Use Of Between Operator In Teradata

    Use Of Between Operator In Teradata

    need a help in using between operator in tera data
    i want to ose as condition and other conditio too
    where H.BILLED_DT BETWEEN Max(H.BILLED_DT ) AND add_months(Max( H.BILLED_DT),-1)
    ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE
    See more | Go to post

  • Shrutisinha
    started a topic I need a help in TERADATA

    I need a help in TERADATA

    I have 2 tables baseline and weekly, baseline is master table andi update baseline by weekly but comparing the new records in the weekly tablle
    can somebody help me i have ban number in both the tables and end_date in the baseline table , once the ban is out from the weekly table it get end date in teh baseline table saying that ban is out , now if the ban come back in weekly table with new strat date how do i insert the record in baseline...
    See more | Go to post
No activity results to display
Show More
Working...