Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count

Status
Not open for further replies.

tomk01

ISP
Oct 18, 2004
69
US
Im want to create a table that looks like this
Field
1
2
3
4
5
...

I was thinking somthing like this
Code:
SELECT record count (id) as num
into tempint1
from einfo
group by id

the problem with my statment is it returns this:
field
1
1
1
1
1
1
 
Is there any reason why you can't use an AutoNumber column which will do exactly what you want and requires no coding?


Bob Boffin
 
I have to drop the table and recreate it evrey time my quary runs
 
You are close, just join the table back to itself. See this thread.

Thread705-947425
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top