Note that there are some explanatory texts on larger screens.

plurals
  1. POmysql item sales
    primarykey
    data
    text
    <p>i would like to ask a question here... let me explain it... here i have 3 table, 1. transaction_table 2. transaction_detail 3. item</p> <p>Nah, my problem here is i want to know the item sales of this month (2013-01) for an example, here's my table structure...</p> <p>1 Transaction Table</p> <pre><code>-------------------------- idTransaction | date | idUser | idCustomer | total | NOSC -------------------------------------------------------------------- 1 | 2013-01-01 | 3 | 4 | 500000 | 1CO 2 | 2013-01-01 | 3 | 5 | 450000 | 2CO 3 | 2013-01-01 | 3 | 6 | 250000 | 3CO </code></pre> <p>2 transaction_detail</p> <pre><code>----------------------------------------------------------------- idTransaction | idItem | qty | price ---------------------------------------- 1 | 1 | 2 | 250000 2 | 2 | 1 | 250000 2 | 3 | 1 | 200000 3 | 1 | 1 | 250000 </code></pre> <p>3 Item Table</p> <pre><code>idItem | Name Item --------------------------------------- 1 | glass 2 | Medicine A 3 | Medicine B </code></pre> <p>4 Customer </p> <pre><code> idCustomer | Name Customer -------------------------------------- 4 | Abuh 5 | Abeh 6 | ABooh </code></pre> <p>So based on these table i would like to get data like this....</p> <pre><code>Name Item | Nosc | Customer | Sold Quantity | @ Price | Total --------------------------------------------- Glass | 1CO | Abuh |2 | 250000 | 500000 Glass | 3CO | ABooh |1 | 250000 | 250000 Medicine A| 2CO | Abeh |1 | 250000 | 250000 Medicine B| 2CO | Abeh |1 | 200000 | 200000 </code></pre> <p>Anyone can help me??</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload