Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
DuckDB Cheatsheet
(view source)
Revision as of 09:12, 26 November 2024
79 bytes added
,
26 November
no edit summary
Line 4:
Line 4:
''Ex: display product name (for main language) of all products of with category '''en:butters'''.
''Ex: display product name (for main language) of all products of with category '''en:butters'''.
−
SELECT code, product_name
+
SELECT
−
FROM
read_parquet(
'food.parquet'
)
+
code,
−
WHERE
product_name
+
unnest(
−
ILIKE
'
%beurre%
';
+
list_filter (
product_name
, x -> x.lang = = 'main')
+
) ['text']
+
FROM
+
'food.parquet'
+
WHERE
+
list_contains (categories_tags, 'en:milks
'
)
+
LIMIT
+
10;
';
┌───────────────┬──────────────────────────────────────────────────────────────┐
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ code │ product_name │
│ code │ product_name │
Raphael0202
Bureaucrats
,
Interface administrators
,
Suppressors
,
Administrators
123
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Log in
Open Food Facts galaxy
📍Where am I?
🍊Open Food Facts website
Open Food Facts wiki
Main page
Recent changes
Random page
🧴 Open Beauty Facts wiki
Main page
Deep dive per topic
All topics
Whole wiki
Help about MediaWiki
Icons in the wiki
Tools
Special pages
Printable version
Admins
Edit sidebar
Styling
Replace text
Special Pages