Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif statement in SQL 2000 select statement
Message
De
24/04/2003 09:10:12
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Iif statement in SQL 2000 select statement
Divers
Thread ID:
00781060
Message ID:
00781060
Vues:
81
Can this work?
the values in dbo.Made2ManageReport_v.antitip are R, L, B, N for right,
left, both, and none.
If this works can I use a case statement in a SQL statement.

SELECT
dbo.Made2ManageReport_v.fsono AS SalesOrderNumber,
dbo.Made2ManageReport_v.carriagetype,
dbo.Made2ManageReport_v.angle,
dbo.Made2ManageReport_v.channel,
dbo.Made2ManageReport_v.vendor,
dbo.Made2ManageReport_v.sections,
dbo.Made2ManageReport_v.passthrough,
dbo.Made2ManageReport_v.starter,
dbo.Made2ManageReport_v.adder,
dbo.Made2ManageReport_v.standar,
dbo.Made2ManageReport_v.xright,
=====> IIF(dbo.Made2ManageReport_v.antitip="R","RIGHT","LEFT") AS AntiTip,
dbo.Made2ManageReport_v.fcustpono,
dbo.Made2ManageReport_v.fenumber,
dbo.Made2ManageReport_v.fduedate,
dbo.Made2ManageReport_v.fbompart,
dbo.Made2ManageReport_v.fbomdesc AS Shaft
FROM
dbo.Made2ManageReport_v
LEFT OUTER JOIN
dbo.Shaft ON dbo.Made2ManageReport_v.fsono = dbo.Shaft.fsono
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform