I have below database table of waves associated with projectId which can be different also for each wave.
projectId
Now I want to get last created wave based o