Home > database > Master genuflect is begged, be urgent! Be urgent! Be urgent!
Master genuflect is begged, be urgent! Be urgent! Be urgent!
Time:09-27
The select t. conductors, T. refund, The sum (t) as the number of The sum (price + t. t. affair fee) as amount, T. mark The from Ticket table t Where to_char (t. ticket time, 'MMDD)=' 1118 'and t. sign in (0, 3) Group by t. conductors, T. refund, T. mark Results: 1 zmh1 zmh1 1 8 3 2 zmh1 Liu Shu 1 8 3 3 zmh1 4 32 0
As statistics together, I am going to put the conductor zmh1 should be 5 people, the amount of money at the same time, the conductor is 40 and refund part will separate Ask ace to see how to do?????
CodePudding user response:
A little blurred, the table structure and part of the data and the results listed,