Bonjour,

je bloque sur un problème sql :

Ma table :

NOM PRENOM SOCIETE STATUT DATE Row NUMBER PARTITION NUMBER
MARC LOUIS AdventureWorks PRESENT 2014-09-01 1 1
MARC LOUIS AdventureWorks PRESENT 2014-09-02 2 1
MARC LOUIS AdventureWorks ABSENT 2014-09-03 1 2
MARC LOUIS AdventureWorks ABSENT 2014-09-04 2 2
MARC LOUIS AdventureWorks ABSENT 2014-09-05 3 2
MARC LOUIS AdventureWorks PRESENT 2014-09-06 1 3
MARC LOUIS AdventureWorks ABSENT 2014-09-07 1 4
MARC LOUIS AdventureWorks ABSENT 2014-09-08 2 4
MARC LOUIS AdventureWorks ABSENT 2014-09-08 3 4

Avec la requête
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
select NOM,PRENOM,SOCIETE,STATUS,DATE,row_number() over (NOM,PRENOM,SOCIETE,STATUS,DATE order by DATE asc) 
from matable
j'ai la colonne row_number, mais pour avoir la colonne partition number...aucune idée....

il y a t-il une solution ??
Merci

SQL SERVER 2005 SP4.
WINDOWS SEVEN PRO 64