mysql - Returning additional lines of data based on a where clause in a union query -


i have single table of sales information. sale can credited 2 sales people causing value of .5 when happens need have half sale reported in 2 places. report this

salesman   salesman 2   unit no  unit cnt.   date  ==================================================== dave s.     n/a         htu88       1        8/2/16 dave s.     phil n.     nc88y      .5        8/5/16 total sales.....................: 1.5  phil n.     n/a         jki98u      1        8/1/16 phil n.     n/a         ji98u1      1        8/3/16 phil n.     dave s.     nc88y      .5        8/5/16 total sales.....................: 2.5  store total.....................: 4.0 


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -