Question 10 of 32beginner🔧 ApplyVery Short1 mark
Write the output produced by the following SQL statement: SELECT YEAR("1979/11/26"), MONTH("1979/11/26"), DAY("1979/11/26"), MONTHNAME("1979/11/26");
Correct Answer
1979 11 26 November
Exercise: EXERCISE | Q: 2(d) | (Page 46)
For More Understanding
Explanation
According to Table 9.15 Date Functions in the textbook, YEAR() extracts the year (1979), MONTH() returns the month in numeric form (11), DAY() returns the day part (26), and MONTHNAME() returns the month name (November) from the date "1979/11/26".
Solution Steps
Step 1: YEAR("1979/11/26") extracts year → 1979
Step 2: MONTH("1979/11/26") returns month number → 11
Step 3: DAY("1979/11/26") returns day → 26
Step 4: MONTHNAME("1979/11/26") returns month name → November