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 Reporting with SQL Aggregate and Numeric Functions Performing Math

Robert Edmonds
Robert Edmonds
1,479 Points

Unable to figure this answer out.

Question is asking to return name and price GDP. US dollar to GDP is 1.4 dollars to 1 GDP.

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

What am I missing? It says my calculation is off?

1 Answer

Steven Parker
Steven Parker
241,488 Points

It's just a typo/spelling issue. The challenge was asking for GBP (Great Britain Pound, A.K.A. "pound sterling").
GDP is typically an abbreviation for Gross Domestic Product. 😉

So instead of "price_gdp" (with a "d"), the alias should be "price_gbp" (with a "b").

Robert Edmonds
Robert Edmonds
1,479 Points

Thank you. I can't believe I missed that.

Steven Parker
Steven Parker
241,488 Points

Robert Edmonds — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!