Advertisement
NonplayerCharacter

PostgreSQL | PGExercises.com | Days left in month

Mar 9th, 2022
1,152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- https://pgexercises.com/questions/date/daysremaining.html
  2. -- solved for today, not for their date
  3.  
  4. select
  5.     (date_trunc('month', CURRENT_TIMESTAMP) + '1 month'::INTERVAL) - date_trunc('day', CURRENT_TIMESTAMP) as remaining
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement