SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Switch/Select Case
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

7 Posts

Posted - 10/15/2012 :  08:54:28  Show Profile  Reply with Quote

I have a query with the following fields. (SQL view from Mircosoft Access)

SELECT tblGIUSA.Company, tblGIUSA.FirstName, tblGIUSA.Surname, tblGIUSA.EducationalLevel

What will the SQL code be if I would like to change e.g:

- The values in Field Company to 25 = "North America", 50 = "South America"
- The text in field EducationLevel to "Bachelor degree" = "low education" and "Master degree" = "High education"

Thanks for all help.

Br Bertrand

Flowing Fount of Yak Knowledge

8780 Posts

Posted - 10/15/2012 :  09:23:32  Show Profile  Visit webfred's Homepage  Reply with Quote
Do you want T-SQL or some Stuff for MS Access?

Too old to Rock'n'Roll too young to die.
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 10/15/2012 :  10:34:50  Show Profile  Reply with Quote
do you've a mapping table containing the values to be replaced against lookup values?

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000