Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql select only row with the max date

SELECT *
  FROM situation
 WHERE datevenement = (SELECT MAX(datevenement)
                         FROM situation
                        WHERE matricule = 12)
   AND matri = 12;
 
PREVIOUS NEXT
Tagged: #sql #select #row #max #date
ADD COMMENT
Topic
Name
2+4 =