Freeform SQL (FFSQL) - Tip - How to create TEMP(Temporary) tables
来源:互联网 发布:印度军事 知乎 编辑:程序博客网 时间:2024/06/06 20:45
I have been working on bunch of FFSQL development and realized that there isn't quick and easy way to learn about how can one make use of TEMP tables while working on FFSQL development in MicroStrategy. Thought this post might be useful tip for someone looking to perform similar tasks.
TEMP tables are very essential mostly while working on complex SQL development though there are numerous resources available online as well as database(Oracle, SQL Server , TeraData etc.) manuals about how to make use of TEMP tables including correct set of syntax and semantics. However when it comes to using this feature in MicroStrategy its not directly feasible by simply copying the SQL to FFSQL editor. Here are quick steps about creating and using TEMP table using MicroStrategy Developer/Desktop.
- Access the MicroStrategy developer to create new report > Choose the Freeform Sources > select the appropriate database instance > Click OK > This will open the FFSQL report editor.
- Type query for test say "select current_date-1" and map it to date attribute in lower portion of FFSQL Editor.
- Now Click OK this will take you to report design view
- Access the Data menu > VLDB Properties option > This will open dialog window like one below
- Now copy the temp creation SQL in pre-sql statement 5
- You choose to create temp table and use the output for reporting in which case once you are done pasting your SQL in VDBL properties Save and Close to come back to report design view
- From Data menu > Choose Freeform Report Definition > This will open FFSQL editor for you to update the previously written query with query using temp table just create. temp table will be create in account used in MicroStrategy data instance selected while creating report so you should avoid using any schema reference for the table.
Hope this post help you with any FFSQL development. I could not add more details with screen shots however if you have any question you may comment and I will revert on that as soon as I could.
Additionally in cases you might want to cache this report output so every time someone runs the report it should not create temp table on the fly. specially if temp table;e creation query run for long time. In this case you should use schedule based cache invalidation feature so you can schedule to run this report and cache it before next schedule run another schedule should invalidate the report cache.
0 0
- Freeform SQL (FFSQL) - Tip - How to create TEMP(Temporary) tables
- How to Create Tables
- 176.You executed this command to create a temporary table: SQL> CREATE GLOBAL TEMPORARY TABLE report
- MySQL权限篇之CREATE TEMPORARY TABLES
- How to create a function in SQL
- Create a temporary file name in Windows temp area
- How to Use Temporary Variable
- Linux tip - How to create a file and write by script?
- Temporary Tables
- Temporary Tables
- temporary tables
- How to create simple and advanced pivot tables in C# and ASP.NET
- InnoDB: Error: unable to create temporary file
- Can’t create/write to file ‘c:\temp/#sql-XXX.MYI′ -- 解决办法
- How to create singleton
- How to create alarm
- How to create WCF
- java How to Use Tables
- c++第六次上机作业
- asp.net C#母版页和内容页事件排版加载顺序生命周期
- 彻底删除Delphi中ActiveX面板中的第三方控件
- 反省与自勉
- C++连接mysql数据库的两种方法
- Freeform SQL (FFSQL) - Tip - How to create TEMP(Temporary) tables
- handsontable一个Excel一样的外观数据网格组件
- Orocos DataPort 解析: orocos lock free data object
- 我是一个线程
- 设计模式C++学习笔记之九(Template Method模板方法模式)
- Linux-34-linux基础重要命令11(L005-16)
- Oracle 11g之LogMiner常用场景
- 第十一周项目1-点-圆-圆柱类族的设计(2)
- poj1466——Girls and Boys(最大独立点集)