Sapete darmi qualche dritta, il problema è questo:
ho una tabella con una data, con un INSERT inserisco i dati trovati in questa tabella con la SELECT riportata.
SELECT ID_WWW, COUNT(DISTINCT DS_CLIENTIP) AS Visite, DATEPART (Month, DT_DATETIME) AS Mese,
DATEPART(Day, DT_DATETIME) AS Giorno, DATEPART(Hour, DT_DATETIME) AS Ora
FROM LOG
GROUP BY ID_WWW, DATEPART(Hour, DT_DATETIME), DATEPART(Month, DT_DATETIME), DATEPART(Day, DT_DATETIME)
ORDER BY DATEPART(Month, DT_DATETIME), DATEPART(Hour, DT_DATETIME), DATEPART(Day, DT_DATETIME)
Vorrei però che Mese, giorno e ora fossero in un unica colonna non in tre come adesso.Esiste una funzione che mi unisce queste 3 colonne?
N.B.DT_DATETIME formato 15/11/2001 14.23.45
Grazie