Bonjour,
Je n'arrive pas a trouver le moyen pour selectionner les derniers elements dans une table Sybase.
Contenue de la table avec les colonnes (une partie):
DateUpdated DateCurrent Currency Label Value1 Value2 Value3 Value4 Value5
Je souhaite avoir le resultat suivant pour le USD:
24/09/2009 14/10/2009 GBP GBP LIB 6M 7.5200 4.7800 0.8488 1.0000 -98.6200
24/09/2009 14/10/2009 USD USD LIB 3M 10.4900 6.4800 0.9267 1.0000 -97.7000
06/10/2009 14/10/2009 AUD AUD LIB 3M 5.1300 12.7300 1.2924 1.0000 -94.0200
06/10/2009 14/10/2009 EUR EUR EUB 6M 3.7700 9.8200 1.2543 1.0000 -93.5200
06/10/2009 14/10/2009 JPY JPY LIB 6M 20.5200 2.6600 0.5611 1.0000 -63.1900
13/10/2009 14/10/2009 EUR EUR EUB 6M 23.2135 0.7601 0.4356 1.0000 -74.5899
13/10/2009 14/10/2009 GBP GBP LIB 6M 9.1009 6.2927 0.8752 1.0000 -98.9997
13/10/2009 14/10/2009 JPY JPY LIB 6M 22.4568 2.6784 0.5824 1.0000 -73.3646
13/10/2009 14/10/2009 USD USD LIB 3M 37.7759 2.9247 0.3706 1.0000 -46.2857
Mais j'ai ceci
13/10/2009 14/10/2009 USD USD LIB 3M 37.7759 2.9247 0.3706 1.0000 -46.2857
avec mon SQL:
24/09/2009 14/10/2009 USD USD LIB 3M 10.4900 6.4800 0.9267 1.0000 -97.7000
13/10/2009 14/10/2009 USD USD LIB 3M 37.7759 2.9247 0.3706 1.0000 -46.2857
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Select distinct Update as DateUpdated, Current as DateCurrent, Currency, Label, Value1, Value2, Value3, Value4, Value5 From myTable Where Currency = 'USD' and DateCurrency = '2009-10-14'
Merci
Partager