MySQL Forums
Forum List  »  Newbie

Complicated Query
Posted by: Rodrigo Lopes
Date: June 06, 2013 07:44PM

Hi guys. Im almost dead trying to do this..somebody help me please :hammer_time:

How do i can get this:

First Name | Last Name | Age | Registered
----------------------------------------------------
John | Harris | 30 | Yes
Amy | Ford | 45 | No

Of this tables..

Table Fields:
ID | Label
----------------
1 | First Name
2 | Last name
3 | Age

Table Users:
FieldID | UserID | Value
-------------------------
1 | 1 | John
2 | 1 | Harris
3 | 1 | 30
1 | 2 | Amy
2 | 2 | Ford
3 | 2 | 45

Table Registrations:
UserID | Registered
-------------------
1 | Yes
2 | No


Thanks in advance to all. :)

Options: ReplyQuote


Subject
Written By
Posted
Complicated Query
June 06, 2013 07:44PM
June 06, 2013 08:29PM
June 06, 2013 08:55PM
June 07, 2013 06:02AM
June 07, 2013 03:12PM
June 08, 2013 06:01AM
June 08, 2013 09:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.