Skip to content
Advertisement

How can I create new column in sql based on previous date?

Output

Advertisement

Answer

You can try with LAG() as suggested by @Akina

EDIT i see you are in mysql just now, you can try with this answer as well

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