Jump to content

mysql query


Brendan

Recommended Posts

Alright say i have the following table structure:

Table 1
_____________________________

|----USERNAME----|----ADDDATE----|

-----myname-----------2006-01-02----
----myname2----------2006-01-03----
______________________________


Table 2
_____________________________________

|---USERNAME---|----FIELD1----|----FIELD2----|

-----myname-----------blue-----------tall----
----myname2----------black----------short---
______________________________________
Now i want to have a mysql query that takes table 2, searches through it and picks out certain rows depending on the where clause that is set, and then match those rows usernames to the usernames on table 1 so that the username, adddate, field1, and field 2 are all returned in the same query.

Thanks,
-Brendan
Link to comment
Share on other sites

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.