We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 1
Weather Observation Station 1
Sort by
recency
|
595 Discussions
|
Please Login in order to post a comment
SELECT CITY,STATE FROM STATION;
Select City, State From Station Where LAT_N>0 AND LONG_W>0;
Nice problem! I like how it reinforces the basics of SQL SELECT statements while keeping the instructions clear. The tip about avoiding the AS keyword is especially useful since it can trip up beginners. I’m going to try writing the query in a single line as suggested and see if I can get my first star.
BEGIN for rec IN ( select City, State from station ) Loop DBMS_OUTPUT.PUT_LINE ( rec.City || ' ' || rec.State ); END Loop; END; /
SELECT CITY,STATE FROM STATION;