Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Tenho um arquivo csv que recebo um layout de um fornecedor e não consigo extrair a data do campo equivalente a data.
Anexo o exemplo do arquivo e do qvw.
Já tentei com date, date#, timestamp, timestamp#
Obrigado!
LOAD
date(date#(left(calldate,10),'YYYY-MM-DD')) as calldate,
Date(Monthstart(calldate), 'MM-yyyy') as anomes,
Date(Monthstart(timestamp(timestamp#(calldate,'MM/DD/YYYY h:m'))), 'MM-yyyy') as anomes1
FROM..............
LOAD
date(date#(left(calldate,10),'YYYY-MM-DD')) as calldate,
Date(Monthstart(calldate), 'MM-yyyy') as anomes,
Date(Monthstart(timestamp(timestamp#(calldate,'MM/DD/YYYY h:m'))), 'MM-yyyy') as anomes1
FROM..............