Ergebnis 1 bis 2 von 2

Hybrid-Darstellung

  1. #1
    Tron Avatar von hoschi111
    Registriert seit
    11.12.2007
    Beiträge
    888

    Standard AW: Access GROUP + SUM Problem

    Ahoi,
    ich habe die Lösung selbst gefunden.
    Code:
    SELECT Product_Groups.descr, Sum(((100-consumption.discount)/100)*consumption.pricevalue*consumption.quant) AS Summevonpricevalue FROM Consumption INNER Join (Product_Groups INNER JOIN Products ON Product_Groups.ID = Products.Group) ON Consumption.product = Products.ID WHERE (((Consumption.eventid) ='100006') AND ((Consumption.datefr)>=#12/10/2015#) AND ((Consumption.dateto)<=#12/10/2015#)) GROUP BY Product_Groups.descr, Product_Groups.ID Order By Product_Groups.ID;
    In case of fire: 1. git commit, 2. git push, 3. git out!

  2. Folgende Benutzer haben sich für diesen Beitrag bedankt:

    iTzAk47 (05.07.2016), newkaiza (06.07.2016), Starflow (05.07.2016)

Ähnliche Themen

  1. GROUP BY und ORDER BY Problem
    Von Notorious im Forum SQL
    Antworten: 8
    Letzter Beitrag: 22.04.2015, 08:14
  2. FTP/Group/User Anlegen
    Von Mac_Hack im Forum Linux und UNIX-Systeme
    Antworten: 2
    Letzter Beitrag: 13.03.2010, 19:08
  3. Msn-Crash WL-Group Edition
    Von J@ssu im Forum Instant Messaging
    Antworten: 7
    Letzter Beitrag: 20.03.2009, 06:25

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •