logo

Crowdly

Suppose you have a PostgreSQL database that contains a table named sales , whi...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Suppose you have a PostgreSQL database that contains a table named sales, which contains information about sales transactions. The sales table has columns for the date of the transaction, the name of the salesperson, the product sold, and the amount of the sale. You want to create a grouped view that shows the total sales amount for each salesperson and product combination.

Example of the sales table:

sale_datesalespersonproductsale_amount
2022-03-01John SmithProduct A100.00
2022-03-01Jane DoeProduct B75.00
2022-03-02John SmithProduct C50.00
2022-03-03Bob JohnsonProduct A25.00
2022-03-03Jane DoeProduct B150.00

Which of the following CREATE VIEW statements would accomplish this?

More questions like this

Want instant access to all verified answers on softserve.academy?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!