Question: In this section, you must edit the file a2.sql and add SQL statements that can be run in psql on Prisnm machines. Your SQL statements

 In this section, you must edit the file a2.sql and add

SQL statements that can be run in psql on Prisnm machines. Your

In this section, you must edit the file a2.sql and add SQL statements that can be run in psql on Prisnm machines. Your SQL statements can create views and queries that will populate the result tables query1, query2, .., query10 with tuples that satisfy the questions below. In order to ensure that everything is run in the correct order (by the markers or the automarker), you should add all your SQL statements in the file a2.sl that we have provided. This file can be read and executed using the psql command i You can assume that the a2.ddl file has been read and executed in psql, before your a2.sql file is executed. Follow these rules: The output of each query must be stored in a result table. We provide the definitions of these tables in the a2.ddl file (query1, query2,.., query10). . For each of the queries below, your final statement should populate the respective answer table (queryX) with the correct tuples. It should look something like "INSERT INTO queryx (SELECT ... is one example tuple because in both countries, English is the most popular language; can be another tuple, and so on. Report the names of the countries and the name of the language Output Table: query8 Attributes: c1name country name) [VARCHAR(20)] [VARCHAR(20)] [VARCHAR(20)] (neighboring country name) (language name) ASC, DESC c2name Iname Order by: name c1name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!