Citation :
SELECT A.prom_id,A.prom_id_product,B.name,B.price,B.stock,B.image, A.prom_date_debut convert(varchar,date,103),A.prom_date_fin,A.prom_price FROM prom_prod A, prod B WHERE (DATEDIFF(""ss"",A.prom_date_debut,getdate())>=0 and DATEDIFF(""ss"",A.prom_date_fin,getdate())>0) and A.prom_id_product=B.catalogid
|