Pages

Google Ads

Tuesday, September 23, 2014

Criando uma coluna de controle (dtCarga) na sua tabela fato

SQL Server 
select
getDate() as dtCarga
from suaTabela

PostgreSQL
select
now() as dtCarga
from nomeesquema.nometabela


CREATE TABLE dw.fact_table
(
  sk_dim01 INTEGER
, sk_dim02 INTEGER
, measure01 NUMERIC(23,2)
, dtCarga  Timestamp
)
;

No comments: