Question : Sql script to calc an avarage reading past sales

A script to display an average sales based on:

1. there is a single sales every month (one invoice per customer), usually at the end of month

2. I would like to read the past 6 months of every customer and calculate the
    average (divided by 6), but if the customer is less than 6 months old, divided the
    read sales by the months that has passed (ex: if only 3 months old, divided by 3
    to get the average.

Table name:   TRANS

Columns:  CUSTID, DATE, INVOICE, AMOUNT

Answer : Sql script to calc an avarage reading past sales

By default, the RAID controller is off.  By resetting the BIOS to defaults, you also turned off the RAID controller.

Got to BIOS (F2), Embedded Devices, and set Integrated RAID to RAID Enabled instead of SCSI Enabled.
Random Solutions  
 
programming4us programming4us