Advertisement

09.19.2007 at 08:23PM PDT, ID: 22840470
[x]
Attachment Details

Case Statement for MS Access Query

Asked by peter_chong in SQL Query Syntax

Tags: case, access, query, statement, ms

Dear EE members,

I would like to convert the following sql server query to ms access query:

select  grade
= case
when pcode1 in ('A01','A12','A17','A34') then 'P'
when pcode1 in('A08','A09') then 'U'
when pcode1 in ('A10','A11','A12','A17','A34') then 'R'
END from dbo.Prod;

TQ.

Rgds,
PeterStart Free Trial
 
 
[+][-]09.19.2007 at 09:28PM PDT, ID: 19926140

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Query Syntax
Tags: case, access, query, statement, ms
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628