Advertisement

04.02.2008 at 12:14PM PDT, ID: 23290538
[x]
Attachment Details

Getting a SQL Server Query to work in Access

Asked by dbbishop in SQL Query Syntax, Microsoft Access Database

The query below works in SQL Server 2000. I need to convert it to work in Access 2003. There is a problem with Access recognizing CASE, Whicj I believe I can resolve with the IIf() function but it doesn't like the JOIN syntax using BETWEEN.Start Free Trial
1:
2:
3:
4:
SELECT	c.CustID, c.CustName, c.BTN, CASE WHEN p.BeginRange IS NULL THEN 0 ELSE 1 END AS IsPooled
FROM	dbo.CustTest c 
LEFT OUTER JOIN
	dbo.PooledBTNRange p ON c.BTN BETWEEN p.BeginRange AND p.EndRange
[+][-]04.02.2008 at 12:24PM PDT, ID: 21266476

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 12:38PM PDT, ID: 21266592

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 01:05PM PDT, ID: 21266889

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 01:10PM PDT, ID: 21266930

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

Zones: SQL Query Syntax, Microsoft Access Database
Sign Up Now!
Solution Provided By: dbbishop
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.02.2008 at 01:11PM PDT, ID: 21266955

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 01:14PM PDT, ID: 21266980

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 01:18PM PDT, ID: 21267037

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 01:28PM PDT, ID: 21267135

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 02:59PM PDT, ID: 21268012

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.02.2008 at 03:33PM PDT, ID: 21268224

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906