Instruction
Perfect! The final arithmetic function we'll discuss is EOMONTH() (end of month):
EOMONTH(startDate, monthToAdd)
The EOMONTH() function with just startDate argument passed returns the end of the current month. With the second argument passed (monthToAdd), it'll do the same but first it'll find the month which is monthToAdd months ahead. For example:
SELECT EOMONTH(ProducedDate) FROM Aircraft;
This gives us the last day of the month when each aircraft was produced.
Exercise
Show the last day of the month for each entry in the Date column of the Flight table. Name the column DateEnd.



