Hi All,
I am trying to split a single row into more rows
At the moment my query returns:
| Student_Number | LastFirst | motherdayphone | fatherdayphone |
| 1 | Mouse, Mickey | 555390292 | 555390297 |
| 2 | Duck, Donald | 555390293 | 555390298 |
But it needs to look like this:
| Student_Number | LastFirst | phone |
| 1 | Mouse, Mickey | 555390292 |
| 1 | Mouse, Mickey | 555390297 |
| 2 | Duck, Donald | 555390293 |
| 2 | Duck, Donald | 555390298 |
From the above you can see that in the first query, both phone parents phone numbers are returned in a single record. I want to split up record so that the parents phone numbers appear as different records.
My query looks like this at the moment:
select
Student_Number,
LastFirst,
motherdayphone,
fatherdayphone
from students
Thanks for any assistance!!