logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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?

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на softserve.academy?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!