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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link tables using field that are different cases

Status
Not open for further replies.

GCL2007

IS-IT--Management
Dec 11, 2007
167
US
I'm trying to write a Crystal Report against an Oracle database. I want to link two tables on a field which is the same however the field data is uppercase in one and lower-case in the other table. I can't seem to link the tables. Is there something I can do? CR 11
 
You could use a command as your datasource. Then in the From clause you can link like this:

ucase("tableA"."field") = "tableB"."field"

If the ucase creates an error, try:

{fn ucase("tableA"."field")} = "tableB"."field"

-LB
 
PS. If you don't want to use a command, you could also add one of the tables in a subreport that is linked on a formula or SQL expression that uses ucase or lcase.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top