I have these tables:
- steps(stepId_,stepName)
- stepOfProject(idProject_,stepId_,dateofStart)
- Project(IdProject_,idResponsable)
I want to get the latest step in each project it is working with this query:
select stepName 
from step 
where step.step=(select max(idstep) from stepOfProject where idProject=1) ; 
But it's working just for project number 1; I want to get for all projectId.
 
     
     
     
    