Text field in a group by, how can I make it work?
- From: "ThunderMusic" <NOdanlatSPAM@hotmaildotcom>
- Date: Fri, 27 Jan 2006 10:14:48 -0500
Hi,
I need to do a sum this way : Select Field1, Sum(Field2) as sumField2 From
Table1 Group By Field1. I think the syntax is correct, but the problem is
that Field1 is of type Text (and not varchar). So I receive an error telling
me I can't "group by" with a field of type "Text". Is there a way I can
convert this field into something else directly in the query so the query
works?
Thanks
ThunderMusic
btw, I'm in SQL Server 2000
.
- Follow-Ups:
- Re: Text field in a group by, how can I make it work?
- From: John Kane
- Re: Text field in a group by, how can I make it work?
- Prev by Date: Re: Full-text catalog is not building properly (completely)
- Next by Date: Re: Advantages?
- Previous by thread: Re: Advantages?
- Next by thread: Re: Text field in a group by, how can I make it work?
- Index(es):
Relevant Pages
|