Subtract data from the first day vs. the last day of the month in SQL of all months of the year

This is a duplicate of what you asked two days ago. Keep discussions in one topic, per this forum's rules.