Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004
    Posts
    2

    Question Unanswered: concat two numbers into one

    Hello,

    Anyone know how to concat two numbers into one and cast it into an integer?

    I've tried CAST(a||b AS INTEGER) but it doesn't work because I'm doing it in the WHERE clause........

    What I need is WHERE c.number = a.num1||a.num2

    Thanks alot!

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: concat two numbers into one

    char(a.num1)||char(a.num2)



    Originally posted by bettyng
    Hello,

    Anyone know how to concat two numbers into one and cast it into an integer?

    I've tried CAST(a||b AS INTEGER) but it doesn't work because I'm doing it in the WHERE clause........

    What I need is WHERE c.number = a.num1||a.num2

    Thanks alot!
    Visit the new-look IDUG Website , register to gain access to the excellent content.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •