1 2 3 4 5 6 7 8 9 10 11 12 13 14
| SELECT DISTINCT
'Post-paid' as Type_Produit,
convert(char(10), DateTime, 103) as date_appel,
convert( char(5), DateTime, 108) as heure_appel,
convert(char(10),Variable7) Num_dossier,
convert(char(5),Variable3) as parc
FROM
t_Route_Call_Detail
WHERE
DateTime between '17/07/2006' AND DATEADD(ss, - 1,CONVERT(datetime,CONVERT(varchar(10), GETDATE(), 103))) AND
DialedNumberString in ('890710129','890710133','890710134','890710137') AND
Variable3 not in ('10','15') AND
Variable3 is not null AND
Variable7 is not null |
Partager