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

Upper case join

Status
Not open for further replies.

BlurredVision

Technical User
Aug 6, 2001
326
GB
I have the following select statement which joins two views together. In one view the First_Name is in all caps, in the second view, the First_Name is stored in lower case. Is there a way I can conver the first_name in lower case to all upper?

Thanks for any help given.


SELECT "RV_tmpOIG"."UPIN", "RV_tmpOIG"."LastName", "RV_tmpOIG"."FirstName", "RV_Practitioner"."First_Name"
FROM "MSOW_QA"."dbo"."RV_tmpOIG" "RV_tmpOIG" INNER JOIN "MSOW_QA"."dbo"."RV_Practitioner" "RV_Practitioner" ON ("RV_tmpOIG"."LastName"="RV_Practitioner"."First_Name") AND ("RV_tmpOIG"."FirstName"="RV_Practitioner"."First_Name")
 
Use the Upper Command.

For Example:

SELECT "RV_tmpOIG"."UPIN", "RV_tmpOIG"."LastName", "RV_tmpOIG"."FirstName", UPPER("RV_Practitioner"."First_Name")
FROM "MSOW_QA"."dbo"."RV_tmpOIG" "RV_tmpOIG" INNER JOIN "MSOW_QA"."dbo"."RV_Practitioner" "RV_Practitioner" ON ("RV_tmpOIG"."LastName"="RV_Practitioner"."First_Name") AND ("RV_tmpOIG"."FirstName"="RV_Practitioner"."First_Name")

With Great Power Comes Great Responsibility!!! [afro]

Michael
 
To make this a bit more clearer:
Code:
SELECT "RV_tmpOIG"."UPIN", "RV_tmpOIG"."LastName", "RV_tmpOIG"."FirstName", [red]UPPER("RV_Practitioner"."First_Name")[/red]
 FROM   "MSOW_QA"."dbo"."RV_tmpOIG" "RV_tmpOIG" INNER JOIN "MSOW_QA"."dbo"."RV_Practitioner" "RV_Practitioner" ON ("RV_tmpOIG"."LastName"="RV_Practitioner"."First_Name") AND ("RV_tmpOIG"."FirstName"="RV_Practitioner"."First_Name")

With Great Power Comes Great Responsibility!!! [afro]

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top