June 22, 2005 at 1:46 pm
hi, i have table and i want to make a select * query that group by first 4 character of second field
is there anybody knows that?
June 22, 2005 at 1:57 pm
is something like:
select fld1, fld2, sum(*)
from table
group by fld1, Left(fld2,4)
??
* Noel
June 22, 2005 at 2:09 pm
Group by or order by???
Can we see the table definition and some sample data with the expected results from the query?
June 22, 2005 at 2:30 pm
thanks a lot noeld, you swithed on a lamp in my mind.
June 22, 2005 at 2:32 pm
Can you tell us what you're trying to do?
June 22, 2005 at 2:33 pm
I am glad I did because all I did was just a guess
* Noel
June 23, 2005 at 6:50 am
It's the most accurate guess you could make .
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply