Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT Query
Message
 
 
À
15/06/2010 18:02:07
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01469087
Message ID:
01469171
Vues:
44
I don't know anything about DB2 but in SQL Server
SELECT TOP 1 * FROM mytable
  WHERE PartNumber LIKE '851251-403%'
  ORDER BY DatetimeStamp DESC
>I need help with SPT to db2 database file.
>
>Suppose I need the status of a part number 851251-403.
>
>Alpha codes(suffixes) are used to specifiy color. Business logic says that the part in a series with the latest datetime stamp, no matter the color, drives the part number status.
>
>In my status database I have two records 851251-403 and 851251-403A these have a datetime stamp field and the 851251-403A has the latest datetime stamp.
>
>What would be the SPT syntax to find the 851251-403A record while passing the 851251-403 within my where clause?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform