<p>CIS 9003 – Oracle Database Programming PL/SQL LAB A3: Appendix A NAME: ______</p><p>Review of SQL Joins: Download this document to your storage media, save this file using the filename: your_name_CIS9003_LabA3.doc Insert your answers into this document. Submit the assignment via email as an attachment to [email protected] </p><p>The following questions utilize the World Facts Schema;</p><p>Review of SQL Joins Using the World Facts Schema, write the SQL code to accomplish the following tasks; COMPLETE ALL PROBLEMS</p><p>1. Write and test an equijoin statement that lists each country’s name, currency code, and currency name. Order the list by country name.</p><p>WRITE THE CODE, INPUT INTO APEX, PRINTSCREEN THE CODE HERE, PRINTSCREEN THE PROGRAM RESULTS HERE</p><p>2. Write and test an equijoin statement that lists each language and the country or countries where it is official. SOLUTION: SELECT country_name, language_name FROM wf_countries NATURAL JOIN wf_languages NATURAL JOIN wf_spoken_languages WHERE OFFICIAL = ‘Y’ ORDER BY country_name;</p><p>3. Display a list of currencies whose name begins with “R” and the country or countries in which they are used. Include currencies which are not used in any country.</p><p>WRITE THE CODE ONLY </p><p>4. There are 100 rows in table A and 250 rows in table B. The Cartesian product of A and B would yield this number of rows: BOLD THE CORRECT ANSWER</p><p>A. 250 B. 25000 C. 100 D. none of the above</p><p>5. Given the tables BEVERAGES and TEMPERATURE_RANGES, write a SQL statement that will display the beverage, temperature, and range as defined by the low and high values. </p><p>BEVERAGES Beverage Temperature Coffee 180 Wine 68 Soda 45 </p><p>TEMPERATURE_RANGES Range Low_Value High_Value Hot 120 212 Room 60 119 Cool 32 59 Very cool 0 31 </p><p>WRITE THE CODE, INPUT INTO APEX, PRINTSCREEN THE CODE HERE, PRINTSCREEN THE PROGRAM RESULTS HERE</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages2 Page
-
File Size-