Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF(,,) in an SQL Server SQL Statement
Message
De
17/04/2000 09:43:26
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
IIF(,,) in an SQL Server SQL Statement
Divers
Thread ID:
00360347
Message ID:
00360347
Vues:
58
I have this SQL Statement (VIEW) in VFP5.0a and was wondering how I would get the same functionality of the IIF() in SQL Server 7.0.
SELECT Timehd.empid, Timehd.date,;
  IIF(Timeitms.timeout>17.AND.Timeitms.timein>17,Timeitms.timeout-Timeitms.timein,Timeitms.timeout-17);
 FROM  prewel!timehd INNER JOIN prewel!timeitms ;
   ON  Timehd.timecrdno = Timeitms.timecrdno;
 WHERE Timehd.date = ?m.dNextChkDate-13;
   AND Timeitms.jobno <> "LUNCH";
 GROUP BY Timehd.empid, Timehd.date;
 HAVING Timeitms.timeout>17;
 ORDER BY Timehd.empid
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform