Home > database > How to use the SQL statement: in September period, every one every day of the total amount paid is m
How to use the SQL statement: in September period, every one every day of the total amount paid is m
Time:09-27
There is a table Table JE Personal coding time site payment amount 1 A 20 2010-9-1 2 the 2010-9-3 B 30 1 C 50 2010-9-10 3 the 2010-9-10 B 30 1 A 50 2010-9-10 3 the 2010-9-10 A, 100
Now I'm going to check out a result: in September period, every one of us every day of the total amount paid more than 100 information, how to realize the query using SQL statements?
CodePudding user response:
Select individual coding, time, place, the sum () to the payment amount from je Where the time between cast (' 20100901 'as a datetime) 'cast (' 20100930' as a datetime) Group by individual coding, time, place having the sum () to the payment amount & gt; 100
CodePudding user response:
Every day oh, not in September the cumulative amount of oh!