Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 11th, 2005, 06:28 AM
Registered User
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default converting Access 2000 views to Sql views

I'm converting queries from Access 2000 to SQL views. I need to covert the following expression from Access 2000 to SQL.

Volume: IIf([OriginalOrderNo] = 0, [ acsuorders_summary] ! [order_no], [OriginalOrderNo])as ordernum.

is there any chance i can use the same in sql plz help.

Old January 26th, 2005, 03:37 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

Hi there is no equivelent IIF function in SQL. You need to either use:

      ..do something
      ..do someting

or Use a Case When statement:

Case <var or value to check>
   When <exp> Then <exp>

The Sql Books Online will be very helpful to you.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error connecting to SQL Views lucylee Visual Studio 2005 0 November 27th, 2006 11:19 AM
Views prashar SQL Language 1 December 13th, 2005 02:10 AM
Views or not ?? stagedancer SQL Server 2000 1 November 24th, 2004 03:08 PM
Partitioned Views deyakhatib SQL Server 2000 3 June 28th, 2004 09:57 AM
Views SAM GORDON SQL Server 2000 5 July 19th, 2003 08:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.