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 trial

Databases

Jonatan Spahn
Jonatan Spahn
6,362 Points

SQL exchange ratae problem

Not sure what I'm doing wrong, could be my formula for exchange rate. I thought if your going USD to GDP you would / 1.4 or * .71 but neither works. Thanks in advance for the help.

What's this about? Is this a code challenge?

Jonatan Spahn
Jonatan Spahn
6,362 Points

Yea it was a code challenge. I don't know why it didn't work the first time, but after I just came back to it and it worked. The code was as follows:

SELECT * name, ROUND(price / 1.4,2) AS price_gdp FROM products;

Steven Parker
Steven Parker
231,271 Points

Perhaps the exchange rate was not correct before, it changes all the time. :laughing:

I'm just joking. But congrats on completing the challenge. :+1:

But for future questions, be sure to post your code and a link to the course or challenge page.