Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTim Strawser
2,832 PointsIt says I have my parameters the other way around but I am correct, cannot figure out what is wrong.
In a movies database we have a movies table. It has the columns of id, title, date_released and genre. Write a query that returns the title first and the month and year it was released alias as month_year_released. Dates should look like "04/1983" for April 1983.
select title, STRFTIME("%m/%y", date_released) AS month_year_released from movies;
1 Answer
Katie Wood
19,141 PointsYou pretty much have it - just need to capitalize the y. STRFTIME doesn't recognize a lowercase y it seems, at least according to this.
Tim Strawser
2,832 PointsThank you very much, the tutorial did not explain that capitalization changes the format. I needed to have a lower case m but an uppercase y for %m/%Y. Thank you again I was stuck.
Katie Wood
19,141 PointsNo problem! Glad you got it
Ignazio Calo
Courses Plus Student 1,819 PointsIgnazio Calo
Courses Plus Student 1,819 Pointsprobably you should show here your query