Welcome to Sign in | Help

Re: Ajutor optimizare interogare - off topic

  •  02-01-2008, 4:35 PM

    Re: Ajutor optimizare interogare - off topic

    În Access există un Crosstab Query Wizard care te poate ajuta, însă ar trebui să faci un alt query înainte ca să poţi să-l foloseşti.

    Iar rezultatul ar trebui să fie ceva de genul:

    TRANSFORM COUNT(Produse.ID)
    SELECT Produse.Produs, COUNT(Produse.ID) AS Total
    FROM (Detail INNER JOIN Facturi ON Detail.ID=Facturi.ID) INNER JOIN Produse ON Detail.ID=Produse.ID
    GROUP BY Produse.Produs
    PIVOT DAY(Facturi.Data);

    Răzvan
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems