logo

Crowdly

Suppose you have two tables in a PostgreSQL database, orders and products . ...

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

Suppose you have two tables in a PostgreSQL database, orders and products. You want to create a view that shows the order ID, product name, and quantity for all orders that include a particular product. Which of the following CREATE VIEW statements would accomplish this?

Table Example:

orders table:

| order_id | product_id | quantity |

|----------|------------|----------|

| 1        | 1          | 3        |

| 2        | 2          | 5        |

| 3        | 1          | 2        |

| 4        | 3          | 1        |

products table:

| id | product_name |

|----|--------------|

| 1  | Widget A     |

| 2  | Widget B     |

| 3  | Widget C     |

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

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

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