Skip to content
Advertisement

I want to fetch 2 records with same id

This is my user table and i want to fetch 2 rows in descending using user_id. I want output like.


Thanks in advance

Advertisement

Answer

I think you strictly need an ANCIer approach. You should try below co-related sub query –

Fiddle.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement