Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P #8688

Closed
max-hoffman opened this issue Dec 18, 2024 · 0 comments
Closed

P #8688

max-hoffman opened this issue Dec 18, 2024 · 0 comments

Comments

@max-hoffman
Copy link
Contributor

every-cause-of-human-outcomes/main*> CREATE TABLE Products(
                                  ->   ProductID Char(38) PRIMARY KEY, /*UUID*/
                                  ->   Manufacturer TEXT,
                                  ->   ProductSeries TEXT,
                                  ->   ProductName TEXT);
every-cause-of-human-outcomes/main*> explain plan SELECT DISTINCT Manufacturer, ProductSeries FROM Products;
+------------------------------------------------------------------+
| plan                                                             |
+------------------------------------------------------------------+
| Distinct                                                         |
|  └─ Project                                                      |
|      ├─ columns: [products.Manufacturer, products.ProductSeries] |
|      └─ Table                                                    |
|          └─ name: Products                                       |
+------------------------------------------------------------------+
5 rows in set (0.00 sec)

every-cause-of-human-outcomes/main*> explain plan SELECT Manufacturer, ProductSeries FROM Products GROUP BY Manufacturer, ProductSeries;
+------------------------------------------------------------------+
| plan                                                             |
+------------------------------------------------------------------+
| GroupBy                                                          |
|  ├─ SelectedExprs(products.Manufacturer, products.ProductSeries) |
|  ├─ Grouping(products.manufacturer, products.productseries)      |
|  └─ Table                                                        |
|      ├─ name: Products                                           |
|      └─ columns: [manufacturer productseries]                    |
+------------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant