Click here to Skip to main content
15,911,531 members

Comments by Muhammad Taqi Hassan Bukhari (Top 70 by date)

Muhammad Taqi Hassan Bukhari 20-Feb-15 2:20am View    
your query returns this,
+-------------------+-------------------------+--------------------------+
| purchase_order_id | Sum_of_ordered_quantity | Sum_of_recieved_quantity |
+-------------------+-------------------------+--------------------------+
| 1 | 300 | 150 |
| 2 | 1500 | 500 |
+-------------------+-------------------------+--------------------------+

you can see in the question that , purchase_order_id 1 has 200 ordered quantity and 150 recieved quantity while purchase_order_id 2 has 500 ordered_quantity and 500 recieved quantity.
Muhammad Taqi Hassan Bukhari 20-Feb-15 2:17am View    
your query didn't returns the correct record.
Muhammad Taqi Hassan Bukhari 20-Feb-15 2:12am View    
what if i want to included item_id as well.
Muhammad Taqi Hassan Bukhari 23-Jan-15 4:05am View    
i want to show this on the web page, i think might be multiple views may help here, i want to group a message of one user and count total then count how many of total status is delivered, failed etc.
Muhammad Taqi Hassan Bukhari 23-Jan-15 2:55am View    
I have updated the question, review it now.