Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...thank you for the wonderful resource that you have enabled here. It is clear, concise, well maintained and most importantly, helpful..."

Geography

Where in the world do Tek-Tips members come from?
crumpm (TechnicalUser)
26 Jun 12 12:05
Progress database with Crystal Reports 2008


I have a table where the key indexes are stored as text instead of numbers (which they are in every other table in the DB)

I need an SQL expression to speed up the conversion as the report often fails when there are a large number of transactions.

e.g transaction.client_number (text)

which I need to link to file.client_number (number)

I'm trying to use {fn CONVERT("transaction"."clinet_number"), xxxx}

but I don't know what to put for xxx and can't find a list anywhere.

Thanks


lbass (TechnicalUser)
26 Jun 12 22:08

Try:

{fn CONVERT("transaction"."client_number",sql_varchar)}

-LB
IanWaterman (Programmer)
27 Jun 12 5:32
I have not used Progress but I read somehere that syntax was similar to Oracle, in which case it would be

to_number(transaction.Client_number)

Ian
lbass (TechnicalUser)
27 Jun 12 8:05
Sorry, I thought you were converting in the other direction. Try:

{fn CONVERT("transaction"."client_number",sql_integer)}

I don't have access to Oracle right now so couldn't test this though.

-LB
crumpm (TechnicalUser)
27 Jun 12 8:37
Thanks, I will try the integer as I think is what I'm looking for.

crumpm (TechnicalUser)
27 Jun 12 11:51
Great, that did the trick. Thanks :)

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close