If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Query help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-10, 20:44
hYph3n hYph3n is offline
Registered User
 
Join Date: Jul 2006
Posts: 26
Query help

I have to tables, users and classes. I need to show the classes count of each user with user ID and i have to show those users as well .. with no classes. how to do it ..
Reply With Quote
  #2 (permalink)  
Old 06-26-10, 05:54
don_log don_log is offline
Registered User
 
Join Date: Jun 2008
Location: pakistan
Posts: 109
you mean each user have different classes ???

you can use count function some thing like this

select count(users),count(classes),userid,username from etc table check that one this is only the sample code make your question more understandable...
Reply With Quote
Reply

Tags
query

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On