EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB7968: How to delete all of the data from a Datamart table without dropping the table in MicroStrategy Developer versions 9.x.


Stefan Zepeda

Salesforce Solutions Architect • Strategy


In MicroStrategy Developer versions 9.x, users can delete all of the data from the Datamart table without dropping the table by following the steps outlined below.

In Strategy Developer versions 9.x, users can delete all of the data from the Datamart table without dropping the table by following the steps outlined below:

  • Set the Datamart to 'Append to existing table'.
ka02R000000kc2jQAA_0EM440000002G7z.gif
  • In the Datamart 'SQL Statement' tab, add the following SQL statement:
    Delete from DATAMART_TABLE_NAME
ka02R000000kc2jQAA_0EM440000002G81.gif

 
The SQL for the Datamart report looks like the following:
Delete from TEST_DM
insert into TEST_DM
select a11.Year_Id Year_Id,
  sum(a11.Tot_Dollar_Sales) WJXBFS1
from YR_CATEGORY_SLS a11
group by a11.Year_Id


Comment

0 comments

Details

Knowledge Article

Published:

June 1, 2017

Last Updated:

June 1, 2017