SlideShare a Scribd company logo
1 of 4
It's not possible in MicroStrategy, but even if it was, how would you then join the data between your Teradata Warehouse and Oracle temp tables?  MicroStrategy's Multisource option works by inserting the data into a temp table on the warehouse side, so you'd be right back where you started!A better solution if you don't like temp tables is to change the VLDB Property for Tables -> Intermediate Table Type to Derived Table.  This will do 1 query with subselects instead of temp tables.  I think that method works better for Teradata anyway.<br />Permanent TablePermanent tables are normal tables and are accessible to all the users on the databases (based on DB privileges). Permanent tables do not mean that are left of the database, they are deleted at the end of the SQL, unless quot;
dropquot;
 command is not included in query execution.Derived TableDerived table is a nested quot;
select..quot;
 statement. Its a virtual table which is calculated from a quot;
selectquot;
 statement on the fly. Processing of the derived table is done on the database server memory. As there is no table created on the DB, all the processing is done only on the database server's memory.True Temp tableTrue temp tables are standard temporary tables. Based on the database, command to create true temp table might vary. Example: In DB2 UDB, quot;
declare global temporary tablequot;
 is used to create a true temp table. Also, in databases like MySQL and Netezza, true temp tables are dropped after the connection to the DB is terminated.True Temp ViewWhen using this option, quot;
Create viewquot;
 command is used instead of quot;
create tablequot;
. However, there are some cases where quot;
create viewquot;
 will not be used even when defined. This is the expected behavior and MSTR knowledge base should have more information on this.<br />How to modify table creation syntax using VLDB Properties for intermediate tables in MicroStrategy SQL Generation Engine 8.1.x and 9.x <br />Certain data warehouses may call for additional parameters to be specified in quot;
create tablequot;
 or quot;
select... intoquot;
 statements, to ensure that intermediate tables are created in the proper table space or with the correct transaction isolation or logging. Several VLDB Properties exist in the MicroStrategy SQL Generation Engine 8.x to allow database-specific phrases to be inserted into table creation statements.<br />Table Qualifier <br />Table Descriptor <br />Table Prefix <br />Table Option <br />Table Space <br />Create Post String <br />Intermediate tables may be created as quot;
Permanentquot;
 or quot;
True temporaryquot;
 tables, as configured in the Tables > Intermediate Table Type VLDB Property. quot;
True temporaryquot;
 tables are intended as a quick way to generate standard temporary table syntax for a given database. The above VLDB Properties are ignored in most cases when quot;
True temporary tablequot;
 is chosen as the Intermediate Table Type.<br /> <br />If specific table creation syntax is needed, the Intermediate Table Type should be configured as quot;
Permanent tablequot;
 to enable all the above VLDB Properties. quot;
Permanent tablequot;
 does not mean that the table will necessarily be permanent in the database. Unless the quot;
Drop Temp Table Methodquot;
 VLDB Property is changed away from the default, MicroStrategy will drop intermediate tables at the end of report execution. Teradata volatile tables can be created using the Permanent table type by setting the Table Qualifier to quot;
volatile,quot;
 for example. Volatile tables are not the same as permanent tables on the database, but we must use the Permanent table type to generate the syntax.<br /> <br />The exception is found in databases such as DB2 UDB, which use quot;
create tablequot;
 for permanent tables and quot;
declare global temporary tablequot;
 for true temporary tables. It is not possible to use table creation VLDB Properties to modify quot;
declare global temporary tablequot;
 syntax extensively, and the table creation VLDB Properties cannot turn the permanent table type's quot;
create tablequot;
 syntax into quot;
declare local temporary table.quot;
<br /> <br />The precise positions of the VLDB strings may differ on some database platforms, but they will generally conform to the following templates. Two templates are presented below, because intermediate tables may be created using explicit or implicit methods (configured in the quot;
Table Creation Typequot;
 VLDB Property).<br /> <br />For these examples, the VLDB Properties were configured as follows:<br />Table Qualifier: TABLE QUALIFIER <br />Table Descriptor: TABLE DESCRIPTOR <br />Table Prefix: TABLE_PREFIX. <br />Table Option: TABLE OPTION <br />Table Space: TABLE SPACE <br />Create Post String: CREATE POST STRING <br />Explicit table creation:<br />create TABLE QUALIFIER table TABLE DESCRIPTOR TABLE_PREFIX.ZZMD00 TABLE OPTION (<br />   YEAR_ID SMALLINT,<br />   REGION_ID SMALLINT,<br />   CATEGORY_ID SMALLINT,<br />   Revenue FLOAT,<br />   WJXBFS1 FLOAT)<br />TABLE SPACE<br />CREATE POST STRING<br /> Implicit table creation:<br />NOTE: In implicit table creation, the same SQL pass creates the table and populates it with data. The MicroStrategy Engine considers this to be an quot;
insertquot;
 pass rather than a quot;
createquot;
 pass. Therefore, the Create Post String VLDB property is not used, and the Insert Post String property is used in its place. Insert Post String is found in the Select/Insert folder.<br />select a14.YEAR_ID YEAR_ID,<br />   a13.REGION_ID REGION_ID,<br />   a12.CATEGORY_ID CATEGORY_ID,<br />   sum(a11.TOT_DOLLAR_SALES) Revenue,<br />   sum((a11.TOT_DOLLAR_SALES - a11.TOT_COST)) WJXBFS1<br />into TABLE QUALIFIER TABLE DESCRIPTOR TABLE_PREFIX.ZZMD00TABLE OPTION<br />TABLE SPACE<br />from SUBCATEG_MNTH_CTR_SLS a11<br />   join LU_SUBCATEG a12<br />      on (a11.SUBCAT_ID = a12.SUBCAT_ID)<br />   join LU_CALL_CTR a13<br />      on (a11.CALL_CTR_ID = a13.CALL_CTR_ID)<br />   join LU_MONTH a14<br />      on (a11.MONTH_ID = a14.MONTH_ID)<br />where a13.REGION_ID in (1, 2, 3, 4, 5, 6, 7)<br />group by a14.YEAR_ID,<br />   a13.REGION_ID,<br />   a12.CATEGORY_ID<br />INSERT POST STRING<br /> <br />Note that there is no space separating the Table Prefix VLDB Property from the table name (ZZMD00). If the prefix should have a dot, the user must specify so explicitly in the property value.<br />
Microstrategy Intermediate Tables
Microstrategy Intermediate Tables
Microstrategy Intermediate Tables

More Related Content

What's hot

7 Software Development Security
7 Software Development Security7 Software Development Security
7 Software Development SecurityAlfred Ouyang
 
Presentation on html, css
Presentation on html, cssPresentation on html, css
Presentation on html, cssAamir Sohail
 
Cryptography 101 for Java Developers - JavaZone2019
Cryptography 101 for Java Developers - JavaZone2019Cryptography 101 for Java Developers - JavaZone2019
Cryptography 101 for Java Developers - JavaZone2019Michel Schudel
 
Introduction To PKI Technology
Introduction To PKI TechnologyIntroduction To PKI Technology
Introduction To PKI TechnologySylvain Maret
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS Dave Kelly
 
Security Framework for Digital Risk Managment
Security Framework for Digital Risk ManagmentSecurity Framework for Digital Risk Managment
Security Framework for Digital Risk ManagmentSecurestorm
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page LayoutJhaun Paul Enriquez
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLOlivia Moran
 
Heuristic methods used in sqlmap
Heuristic methods used in sqlmapHeuristic methods used in sqlmap
Heuristic methods used in sqlmapMiroslav Stampar
 
NIST Cybersecurity Framework Intro for ISACA Richmond Chapter
NIST Cybersecurity Framework Intro for ISACA Richmond ChapterNIST Cybersecurity Framework Intro for ISACA Richmond Chapter
NIST Cybersecurity Framework Intro for ISACA Richmond ChapterTuan Phan
 
Soc analyst course content
Soc analyst course contentSoc analyst course content
Soc analyst course contentShivamSharma909
 
3 Layers of the Web - Part 1
3 Layers of the Web - Part 13 Layers of the Web - Part 1
3 Layers of the Web - Part 1Jeremy White
 
Crawl the entire web in 10 minutes...and just 100€
Crawl the entire web  in 10 minutes...and just 100€Crawl the entire web  in 10 minutes...and just 100€
Crawl the entire web in 10 minutes...and just 100€Danny Linden
 
Webinar: Technical Introduction to Native Encryption on MongoDB
Webinar: Technical Introduction to Native Encryption on MongoDBWebinar: Technical Introduction to Native Encryption on MongoDB
Webinar: Technical Introduction to Native Encryption on MongoDBMongoDB
 

What's hot (20)

7 Software Development Security
7 Software Development Security7 Software Development Security
7 Software Development Security
 
Presentation on html, css
Presentation on html, cssPresentation on html, css
Presentation on html, css
 
Cryptography 101 for Java Developers - JavaZone2019
Cryptography 101 for Java Developers - JavaZone2019Cryptography 101 for Java Developers - JavaZone2019
Cryptography 101 for Java Developers - JavaZone2019
 
Coding Security: Code Mania 101
Coding Security: Code Mania 101Coding Security: Code Mania 101
Coding Security: Code Mania 101
 
Introduction To PKI Technology
Introduction To PKI TechnologyIntroduction To PKI Technology
Introduction To PKI Technology
 
A history of html
A history of htmlA history of html
A history of html
 
Css ppt
Css pptCss ppt
Css ppt
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Security Framework for Digital Risk Managment
Security Framework for Digital Risk ManagmentSecurity Framework for Digital Risk Managment
Security Framework for Digital Risk Managment
 
Understanding the Web Page Layout
Understanding the Web Page LayoutUnderstanding the Web Page Layout
Understanding the Web Page Layout
 
Security Development Lifecycle Tools
Security Development Lifecycle ToolsSecurity Development Lifecycle Tools
Security Development Lifecycle Tools
 
Lesson 1: Introduction to HTML
Lesson 1: Introduction to HTMLLesson 1: Introduction to HTML
Lesson 1: Introduction to HTML
 
Heuristic methods used in sqlmap
Heuristic methods used in sqlmapHeuristic methods used in sqlmap
Heuristic methods used in sqlmap
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
NIST Cybersecurity Framework Intro for ISACA Richmond Chapter
NIST Cybersecurity Framework Intro for ISACA Richmond ChapterNIST Cybersecurity Framework Intro for ISACA Richmond Chapter
NIST Cybersecurity Framework Intro for ISACA Richmond Chapter
 
Soc analyst course content
Soc analyst course contentSoc analyst course content
Soc analyst course content
 
3 Layers of the Web - Part 1
3 Layers of the Web - Part 13 Layers of the Web - Part 1
3 Layers of the Web - Part 1
 
Crawl the entire web in 10 minutes...and just 100€
Crawl the entire web  in 10 minutes...and just 100€Crawl the entire web  in 10 minutes...and just 100€
Crawl the entire web in 10 minutes...and just 100€
 
Html basics
Html basicsHtml basics
Html basics
 
Webinar: Technical Introduction to Native Encryption on MongoDB
Webinar: Technical Introduction to Native Encryption on MongoDBWebinar: Technical Introduction to Native Encryption on MongoDB
Webinar: Technical Introduction to Native Encryption on MongoDB
 

Similar to Microstrategy Intermediate Tables

Setting And Changing The Column Collation.Doc
Setting And Changing The Column Collation.DocSetting And Changing The Column Collation.Doc
Setting And Changing The Column Collation.Docwalsh010
 
SQL Server 2008 Performance Enhancements
SQL Server 2008 Performance EnhancementsSQL Server 2008 Performance Enhancements
SQL Server 2008 Performance Enhancementsinfusiondev
 
Creating database using sql commands
Creating database using sql commandsCreating database using sql commands
Creating database using sql commandsBelle Wx
 
How to Fine-Tune Performance Using Amazon Redshift
How to Fine-Tune Performance Using Amazon RedshiftHow to Fine-Tune Performance Using Amazon Redshift
How to Fine-Tune Performance Using Amazon RedshiftAWS Germany
 
SQL.pptx for the begineers and good know
SQL.pptx for the begineers and good knowSQL.pptx for the begineers and good know
SQL.pptx for the begineers and good knowPavithSingh
 
Data Movement issues: Explicit SQL Pass-Through can do the trick
Data Movement issues: Explicit SQL Pass-Through can do the trickData Movement issues: Explicit SQL Pass-Through can do the trick
Data Movement issues: Explicit SQL Pass-Through can do the trickKiran Venna
 
Introdcution to Cassandra for RDB Folks
Introdcution to Cassandra for RDB FolksIntrodcution to Cassandra for RDB Folks
Introdcution to Cassandra for RDB FolksAlexander Graebe
 
MYSQL
MYSQLMYSQL
MYSQLARJUN
 
Oracle 12.2 sharded database management
Oracle 12.2 sharded database managementOracle 12.2 sharded database management
Oracle 12.2 sharded database managementLeyi (Kamus) Zhang
 
Ms sql server ii
Ms sql server  iiMs sql server  ii
Ms sql server iiIblesoft
 
Extending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorExtending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorMark Leith
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...Alex Zaballa
 
Intro to IndexedDB (Beta)
Intro to IndexedDB (Beta)Intro to IndexedDB (Beta)
Intro to IndexedDB (Beta)Mike West
 

Similar to Microstrategy Intermediate Tables (20)

Setting And Changing The Column Collation.Doc
Setting And Changing The Column Collation.DocSetting And Changing The Column Collation.Doc
Setting And Changing The Column Collation.Doc
 
SQL Server 2008 Performance Enhancements
SQL Server 2008 Performance EnhancementsSQL Server 2008 Performance Enhancements
SQL Server 2008 Performance Enhancements
 
MAD UNIT 5 FINAL.pptx
MAD UNIT 5 FINAL.pptxMAD UNIT 5 FINAL.pptx
MAD UNIT 5 FINAL.pptx
 
Creating database using sql commands
Creating database using sql commandsCreating database using sql commands
Creating database using sql commands
 
How to Fine-Tune Performance Using Amazon Redshift
How to Fine-Tune Performance Using Amazon RedshiftHow to Fine-Tune Performance Using Amazon Redshift
How to Fine-Tune Performance Using Amazon Redshift
 
SQL.pptx for the begineers and good know
SQL.pptx for the begineers and good knowSQL.pptx for the begineers and good know
SQL.pptx for the begineers and good know
 
Data Movement issues: Explicit SQL Pass-Through can do the trick
Data Movement issues: Explicit SQL Pass-Through can do the trickData Movement issues: Explicit SQL Pass-Through can do the trick
Data Movement issues: Explicit SQL Pass-Through can do the trick
 
Introdcution to Cassandra for RDB Folks
Introdcution to Cassandra for RDB FolksIntrodcution to Cassandra for RDB Folks
Introdcution to Cassandra for RDB Folks
 
Sq lite
Sq liteSq lite
Sq lite
 
MYSQL
MYSQLMYSQL
MYSQL
 
Oracle 12.2 sharded database management
Oracle 12.2 sharded database managementOracle 12.2 sharded database management
Oracle 12.2 sharded database management
 
Ms sql server ii
Ms sql server  iiMs sql server  ii
Ms sql server ii
 
JDBC – Java Database Connectivity
JDBC – Java Database ConnectivityJDBC – Java Database Connectivity
JDBC – Java Database Connectivity
 
PostgreSQL Terminology
PostgreSQL TerminologyPostgreSQL Terminology
PostgreSQL Terminology
 
Extending MySQL Enterprise Monitor
Extending MySQL Enterprise MonitorExtending MySQL Enterprise Monitor
Extending MySQL Enterprise Monitor
 
Sqlapi0.1
Sqlapi0.1Sqlapi0.1
Sqlapi0.1
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
 
MYSql manage db
MYSql manage dbMYSql manage db
MYSql manage db
 
Intro to IndexedDB (Beta)
Intro to IndexedDB (Beta)Intro to IndexedDB (Beta)
Intro to IndexedDB (Beta)
 

Recently uploaded

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Microstrategy Intermediate Tables

  • 1. It's not possible in MicroStrategy, but even if it was, how would you then join the data between your Teradata Warehouse and Oracle temp tables?  MicroStrategy's Multisource option works by inserting the data into a temp table on the warehouse side, so you'd be right back where you started!A better solution if you don't like temp tables is to change the VLDB Property for Tables -> Intermediate Table Type to Derived Table.  This will do 1 query with subselects instead of temp tables.  I think that method works better for Teradata anyway.<br />Permanent TablePermanent tables are normal tables and are accessible to all the users on the databases (based on DB privileges). Permanent tables do not mean that are left of the database, they are deleted at the end of the SQL, unless quot; dropquot; command is not included in query execution.Derived TableDerived table is a nested quot; select..quot; statement. Its a virtual table which is calculated from a quot; selectquot; statement on the fly. Processing of the derived table is done on the database server memory. As there is no table created on the DB, all the processing is done only on the database server's memory.True Temp tableTrue temp tables are standard temporary tables. Based on the database, command to create true temp table might vary. Example: In DB2 UDB, quot; declare global temporary tablequot; is used to create a true temp table. Also, in databases like MySQL and Netezza, true temp tables are dropped after the connection to the DB is terminated.True Temp ViewWhen using this option, quot; Create viewquot; command is used instead of quot; create tablequot; . However, there are some cases where quot; create viewquot; will not be used even when defined. This is the expected behavior and MSTR knowledge base should have more information on this.<br />How to modify table creation syntax using VLDB Properties for intermediate tables in MicroStrategy SQL Generation Engine 8.1.x and 9.x <br />Certain data warehouses may call for additional parameters to be specified in quot; create tablequot; or quot; select... intoquot; statements, to ensure that intermediate tables are created in the proper table space or with the correct transaction isolation or logging. Several VLDB Properties exist in the MicroStrategy SQL Generation Engine 8.x to allow database-specific phrases to be inserted into table creation statements.<br />Table Qualifier <br />Table Descriptor <br />Table Prefix <br />Table Option <br />Table Space <br />Create Post String <br />Intermediate tables may be created as quot; Permanentquot; or quot; True temporaryquot; tables, as configured in the Tables > Intermediate Table Type VLDB Property. quot; True temporaryquot; tables are intended as a quick way to generate standard temporary table syntax for a given database. The above VLDB Properties are ignored in most cases when quot; True temporary tablequot; is chosen as the Intermediate Table Type.<br /> <br />If specific table creation syntax is needed, the Intermediate Table Type should be configured as quot; Permanent tablequot; to enable all the above VLDB Properties. quot; Permanent tablequot; does not mean that the table will necessarily be permanent in the database. Unless the quot; Drop Temp Table Methodquot; VLDB Property is changed away from the default, MicroStrategy will drop intermediate tables at the end of report execution. Teradata volatile tables can be created using the Permanent table type by setting the Table Qualifier to quot; volatile,quot; for example. Volatile tables are not the same as permanent tables on the database, but we must use the Permanent table type to generate the syntax.<br /> <br />The exception is found in databases such as DB2 UDB, which use quot; create tablequot; for permanent tables and quot; declare global temporary tablequot; for true temporary tables. It is not possible to use table creation VLDB Properties to modify quot; declare global temporary tablequot; syntax extensively, and the table creation VLDB Properties cannot turn the permanent table type's quot; create tablequot; syntax into quot; declare local temporary table.quot; <br /> <br />The precise positions of the VLDB strings may differ on some database platforms, but they will generally conform to the following templates. Two templates are presented below, because intermediate tables may be created using explicit or implicit methods (configured in the quot; Table Creation Typequot; VLDB Property).<br /> <br />For these examples, the VLDB Properties were configured as follows:<br />Table Qualifier: TABLE QUALIFIER <br />Table Descriptor: TABLE DESCRIPTOR <br />Table Prefix: TABLE_PREFIX. <br />Table Option: TABLE OPTION <br />Table Space: TABLE SPACE <br />Create Post String: CREATE POST STRING <br />Explicit table creation:<br />create TABLE QUALIFIER table TABLE DESCRIPTOR TABLE_PREFIX.ZZMD00 TABLE OPTION (<br />   YEAR_ID SMALLINT,<br />   REGION_ID SMALLINT,<br />   CATEGORY_ID SMALLINT,<br />   Revenue FLOAT,<br />   WJXBFS1 FLOAT)<br />TABLE SPACE<br />CREATE POST STRING<br /> Implicit table creation:<br />NOTE: In implicit table creation, the same SQL pass creates the table and populates it with data. The MicroStrategy Engine considers this to be an quot; insertquot; pass rather than a quot; createquot; pass. Therefore, the Create Post String VLDB property is not used, and the Insert Post String property is used in its place. Insert Post String is found in the Select/Insert folder.<br />select a14.YEAR_ID YEAR_ID,<br />   a13.REGION_ID REGION_ID,<br />   a12.CATEGORY_ID CATEGORY_ID,<br />   sum(a11.TOT_DOLLAR_SALES) Revenue,<br />   sum((a11.TOT_DOLLAR_SALES - a11.TOT_COST)) WJXBFS1<br />into TABLE QUALIFIER TABLE DESCRIPTOR TABLE_PREFIX.ZZMD00TABLE OPTION<br />TABLE SPACE<br />from SUBCATEG_MNTH_CTR_SLS a11<br />   join LU_SUBCATEG a12<br />      on (a11.SUBCAT_ID = a12.SUBCAT_ID)<br />   join LU_CALL_CTR a13<br />      on (a11.CALL_CTR_ID = a13.CALL_CTR_ID)<br />   join LU_MONTH a14<br />      on (a11.MONTH_ID = a14.MONTH_ID)<br />where a13.REGION_ID in (1, 2, 3, 4, 5, 6, 7)<br />group by a14.YEAR_ID,<br />   a13.REGION_ID,<br />   a12.CATEGORY_ID<br />INSERT POST STRING<br /> <br />Note that there is no space separating the Table Prefix VLDB Property from the table name (ZZMD00). If the prefix should have a dot, the user must specify so explicitly in the property value.<br />