Oracle Model Clause
SELECT country,prod, YEAR,sales FROM sales_view WHERE country IN ('Italy','Japan')
MODEL
RETURN UPDATED ROWS
PARTITION BY (country)
DIMENSION BY (prod, YEAR)
MEASURES (sale sales)
RULES(
sales['Bounce',2002] = sales['Bounce',2001] + sales['Bounce',2000],
sales['Y Box',2002] = sales['Y Box',2001],
sales['2_Products',2002] = sales['Bounce',2002] + sales['Y Box',2002],
sales['2_Products',2003] = 2*sales['2_Products',2002]
)
ORDER BY country, prod, YEAR;
其中紅色的部分是可選的。
partition與分析函式中的partition相似,而dimension可以看成是excel中的行與列的值。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70014873/viewspace-2868069/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle SQL Model ClauseOracleSQL
- [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated cExpressAI
- DML_The OUTPUT Clause
- [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains 的問題 MySQLExpressAIMySql
- 4.3.2.2.1 The SEED FILE_NAME_CONVERT Clause
- alter tablespace ts_name autoextend_clause
- Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggreExpressAI
- list is not in GROUP BY clause and contains nonaggre的問題AI
- mysql主給備賦予許可權時報錯,MySQL [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clauseMySqlExpress
- machine learning model(algorithm model) .vs. statistical modelMacGo
- You can‘t specify target table ‘Person‘ for update in FROM clause
- mysql報錯:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggreMySqlExpressAI
- Reactor ModelReact
- 解說pytorch中的model=model.to(device)PyTorchdev
- Laravel model validationLaravel
- v-model
- transformer model architectureORM
- Laravel model filterLaravelFilter
- ocp 19c考題,科目082考試題(26) - order by clause
- ocp 19c考題,科目082考試題(27) - order by clause
- Laravel中的ModelLaravel
- Diffusion Model-DDPM
- A successful Git branching modelGit
- DeepLearning – Overview of Sequence modelView
- Procedure to create Distribution model
- SAP Distribution Model初探
- Django的User ModelDjango
- GENERIC FRAMEWORK MODEL OF JAVA PLATFORMFrameworkJavaPlatform
- 聊聊MVX中的Model
- XML DOM(Document Object Model)XMLObject
- Diffusion model papers, survey, and taxonomy
- Flask專案生成ModelFlask
- model 遞迴子級遞迴
- Laravel Model 知識點Laravel
- 逆向 Model 的 Composer 包
- The runtime data area model of JVMJVM
- Django model總結(上)Django
- copying model and updating field of pydantic