lyric0n
Technical User
- Dec 28, 2005
- 74
Hello,
I have two tables that I am trying to join together to create a particular view, but I am have a difficult time coming up with the correct query.
One table looks like...
Uid | Login
1 | John
2 | Paul
3 | Sally
The second table looks like
Uid | Fid | Value
1 | 1 | john@sw.com
1 | 2 | San Francisco
1 | 3 | 2007
2 | 1 | Paul@sw.com
2 | 2 | Atlanta
2 | 3 | 1997
3 | 1 | sally@sw.com
3 | 2 | New York
3 | 3 | 2006
I need the resulting data to look like
Uid | Login | Email | HomeTown | YearGraduated
1 | John | john@sw.com | San Francisco | 2007
2 | Paul | Paul@sw.com | Atlanta | 1997
3 | Sally | sally@sw.com | New York | 2006
Thanks for the help!
Chris
I have two tables that I am trying to join together to create a particular view, but I am have a difficult time coming up with the correct query.
One table looks like...
Uid | Login
1 | John
2 | Paul
3 | Sally
The second table looks like
Uid | Fid | Value
1 | 1 | john@sw.com
1 | 2 | San Francisco
1 | 3 | 2007
2 | 1 | Paul@sw.com
2 | 2 | Atlanta
2 | 3 | 1997
3 | 1 | sally@sw.com
3 | 2 | New York
3 | 3 | 2006
I need the resulting data to look like
Uid | Login | Email | HomeTown | YearGraduated
1 | John | john@sw.com | San Francisco | 2007
2 | Paul | Paul@sw.com | Atlanta | 1997
3 | Sally | sally@sw.com | New York | 2006
Thanks for the help!
Chris