logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1248628 total)

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     |

0%
0%
0%
0%
Переглянути це питання

What is the difference between a regular view and a materialized view in PostgreSQL?

Переглянути це питання

Which database feature ensures data is stored consistently (e.g., all customer emails follow the same format)?

Переглянути це питання

Which of the following cannot be stored in a relational database easily?

0%
0%
0%
0%
Переглянути це питання

What is a common advantage of relational databases?

Переглянути це питання

What is the benefit of using materialized (indexed) views?

Переглянути це питання
What is GitFlow?
Переглянути це питання

Which type of view combines data from one or more base tables (or views) into a new virtual table?

Переглянути це питання

What is a relational database?

Переглянути це питання

Each order must be linked to a specific customer. Which column should be used to link the Orders Table to the Customers Table?

Переглянути це питання