⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 1.3 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 2 of about 2 for dept (0.001 sec.)
UNPIVOT Statement – DuckDB 11228
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... e Data All examples use the dataset produced by the queries below: CREATE OR REPLACE TABLE monthly_sales ( empid INTEGER , dept TEXT , Jan INTEGER , Feb INTEGER , Mar INTEGER , Apr INTEGER , May INTEGER , Jun INTEGER ); INSERT INTO monthly_sales VALU ... 'clothes' , 10 , 20 , 30 , 40 , 50 , 60 ), ( 3 , 'cars' , 100 , 200 , 300 , 400 , 500 , 600 ); FROM monthly_sales ; empid dept Jan Feb Mar Apr May Jun 1 electronics 1 2 3 4 5 6 2 clothes 10 20 30 40 50 60 3 cars 100 200 300 400 500 600 UNPIVOT Manua ... column and a sales column. UNPIVOT monthly_sales ON jan , feb , mar , apr , may , jun INTO NAME month VALUE sales ; empid dept month sales 1 electronics Jan 1 1 electronics Feb 2 1 electronics Mar 3 1 electronics Apr 4 1 electronics May 5 1 electron ...
https://man.mtool.work/duckdb/1.3/sql/statements/unpivot.html
Pivot Internals – DuckDB 7485
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... NPIVOT monthly_sales ON jan , feb , mar , apr , may , jun INTO NAME month VALUE sales ; is translated into: SELECT empid , dept , unnest ([ 'jan' , 'feb' , 'mar' , 'apr' , 'may' , 'jun' ]) AS month , unnest ([ "jan" , "feb" , "mar" , "apr" , "may" , ... the double quotes to pull the column values for use in sales . This produces the same result as the initial example: empid dept month sales 1 electronics jan 1 1 electronics feb 2 1 electronics mar 3 1 electronics apr 4 1 electronics may 5 1 electron ...
https://man.mtool.work/duckdb/1.3/internals/pivot.html
PREV 1 NEXT
DuckDB 1.3 Documentation / man.mtool.work