Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

IIf Statements in access

Posted on 1998-08-17
1
233 Views
Last Modified: 2010-03-19
What would be the easiest way to convert the IIf statement in the my access select string to a stored procedure in sql select.
0
Comment
Question by:rvindust
1 Comment
 
LVL 7

Accepted Solution

by:
spiridonov earned 20 total points
ID: 1089582
USE CASE statement

IIF(a>b,a,b) will translate into
SELECT (CASE WHEN A>B THEN a ELSE B END)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS SQL Update query with connected table data 3 34
Row insertion failed. Array 5 46
Nested Case statement 4 36
SQL Server / Update DB? 22 36
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question