Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2006, 01:19 PM
Simon180 Simon180 is offline
Senior Member
 
Join Date: Dec 2003
Posts: 187
Default count names from a dbs

I want to get info from the following db code

MainForm.GroupsTable.FieldByName('Name').AsString;

but I want to count all the Names in the field can sumone show me how to do this allso how can I make it so I can check group then room then user count in that room

Group --> Room Name --> Users in room count can anyone help at all thank you
Reply With Quote
  #2  
Old 06-13-2006, 09:14 PM
autocorect autocorect is offline
Senior Member
 
Join Date: Mar 2005
Posts: 725
Default RE: count names from a dbs

use SQL

Select Count(users)
From "your table"
Where group="your group" and room name="your room"
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:22 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.