current table:
what I want to get to:
Can I accomplish this with a sql query?
Thanks
Matt
Code:
key formname userid fieldname x_coor y_coor
--- -------- ------ --------- ------ ------
1 form1 matt field1 1 1
2 form1 matt field2 100 1
3 form1 matt field3 200 1
4 form1 fred field1 5 50
5 form1 fred field2 500 50
6 form1 fred field3 500 75
...many other records
what I want to get to:
Code:
key formname userid fieldname x_coor y_coor
--- -------- ------ --------- ------ ------
1 form1 matt field1 1 1
2 form1 matt field2 100 1
3 form1 matt field3 200 1
4 form1 fred field1 1 1
5 form1 fred field2 100 1
6 form1 fred field3 200 1
Can I accomplish this with a sql query?
Thanks
Matt