To select or modify the column data type for a particular attribute or fact, follow the steps below:





Note: Even though the name of the form or fact's column alias has been changed, the Strategy SQL Generation Engine will use the correct physical column names wherever the attribute form appears in SQL. The Engine looks up column names based on the column objects associated with the physical table object in the metadata. Setting a different column alias for an attribute form or fact does not change the columns associated with the table.
However, if intermediate tables need to be created for the report and explicit table creation is used (per the table creation type VLDB property), the name given to the new column alias will be used in the CREATE TABLE statement.
Sql
create table #ZZEA00(
DateAndTime DATETIME,
WJXBFS1 FLOAT)
insert into #ZZEA00
select a11.DAY_DATE DateAndTime,
sum((a11.TOT_DOLLAR_SALES - a11.TOT_COST)) WJXBFS1
from DAY_CTR_SLS a11
group by a11.DAY_DATE
select a12.MONTH_ID MONTH_ID,
a13.MONTH_DESC MONTH_DESC0,
pa11.DateAndTime DateAndTime,
pa11.WJXBFS1 WJXBFS1
from #ZZEA00 pa11
join LU_DAY a12
on (pa11.DateAndTime = a12.DAY_DATE)
join LU_MONTH a13
on (a12.MONTH_ID = a13.MONTH_ID)
drop table #ZZEA00