SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

Bertrand82
Starting Member

7 Posts

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

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

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

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

webfred
Flowing Fount of Yak Knowledge

Germany
8766 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

visakh16
Very Important crosS Applying yaK Herder

India
52325 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
http://visakhm.blogspot.com/

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