I have a price column and a date column in an sql database which contains daily prices for the last 10 years. I want to be able get the price for the 1st of the month for each month in the table without providing a date.
All solutions so far have required me to provide a date such as this: How can I select the first day of a month in SQL?
I am fairly new to SQL and so am unsure of the code within the answer. Any help and explanation would be greatly appreciated.
Thanks