Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
216,083 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.