Jump to content

Mage a table without getting the duplicates... and anothers functions.


Recommended Posts

MySQL version 5.1.56

 

heelo, i want to merge two identical tables without get the duplicate values, and.. if a duplicate appears i want to plus 1 to the hit column... that's possible?!

 

Like:

 

Table 1

Columns : A  -  B

Values:  Hi - 0

Values:  Hello - 0

 

Table 2

Columns : A  -  B

Values:  Hi - 0

Values:  Nice - 0

 

 

New Table 3

Columns : A  -  B

Values:  Hi - 1

Values:  Nice - 0

Values:  Hello - 0

 

 

.

 

Understand?

 

Thanks in advance.

not with the information that you have given I don't think.  There may be a couple of methods that will get the results that you are looking for, but we will need to know exactly what you are doing.  Are you creating a new table?  could you provide your actual table structure for the database that you are working on?

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.