Jump to content

Recommended Posts

Hi guys.

 

I have a table named 'USER' with two fields `name` , `l_name`

 

Every one can write they name and last names in form and that will be inserted as a row.

 

How can i count each users rows?

 

For example:

 

John kain : 2 times

David potter : 1 times

Samuel haug : 13 times

 

Thanks

Hi.

 

It is my program defaults. i know there is many easier way to do this, but i please want to know what is the query that do that?

 

This is a voting program that the users are not predefined.

 

Thanks

I don't understand.

I have a table named 'USER' with two fields `name` , `l_name`

 

Every one can write they name and last names in form and that will be inserted as a row.

 

How can i count each users rows?

 

Would be easier to use one column for 1st and last names

 

As they are...

 

COUNT(*) FROM USER WHERE name = 'John' AND l_name = 'kain'

 

If you want it more dynamic youll have to join the columns first......simple

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.