Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We will use a GitHub project that translated the database for use in Postgres. You must import the data into your Postgres instance by creating
We will use a GitHub project that translated the database for use in Postgres. You must import the data into your Postgres instance by creating a new database and running the northwind.sql file against that database.
You may simply run the createdbsh script on MacOS, Linux, or WSLbash Without a bash shell available, you must use the techniques from previous SQL assignments to manage your database. Note that for our purposes, some of the commands in the script are not completely necessary. This isn't necessary
Write SQL queries for the following questions, stored in a sql file to be turned in:
What is the full name, full address, title, and phone number for all employees currently living in a US state that shares a border with the Pacific Ocean?
Give the same information for all employees not in the USA but are older than years of age.
Which employees last name, first name without repeats have placed orders delivered to Norway?
What is the title and name of any employee that has sold at least two of either "Vegiespread" or "Sir Rodneys Marmalade"?
What are the Employee IDs for all employees who have sold more than products?
List the last name of all employees that live on the same city as their managers.
List the product names of all products that were bought OR sold by people who live in London use a UNION
What is the average price of products for each category? Output just the average price as "averageprice" and the category ID
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started