Hi,
I have a table which contains the fields Empid, Empname, Amount, Date_check_rcvd . Now my question I want to generate a report which gives the sum of amount by month and by year thru the date of check recieved. I have a problem in writing the query where if I say sum(amount) and execute the query it gives an error saying " you tried to execute the query that does not include a specified expression Empid as part of aggregate function". I have very little experience in writing the queries. I just don't know what is wrong??can anyone help me out????
I have a table which contains the fields Empid, Empname, Amount, Date_check_rcvd . Now my question I want to generate a report which gives the sum of amount by month and by year thru the date of check recieved. I have a problem in writing the query where if I say sum(amount) and execute the query it gives an error saying " you tried to execute the query that does not include a specified expression Empid as part of aggregate function". I have very little experience in writing the queries. I just don't know what is wrong??can anyone help me out????
Comment