Hi all,
I'm new to this forumn and need your help. Below is the query that I am running and under it is the resulting table.
SELECT DISTINCT school.schoolID, field.[name],
degree. [name] AS degree, degree.degreeID,
field.fieldID
FROM school_field INNER JOIN
school_field_degree ON school_field.schoolID = school_field_degree.schoolID AND
school_field.fieldID = school_field_degree.fieldID INNER JOIN
school ON school_field.schoolID = school.schoolID INNER JOIN
degree ON school_field_degree.degreeID = degree.degreeID INNER JOIN
field ON school_field.fieldID = field.fieldID
WHERE school.schoolID = 136 AND school.siteID = 7
ORDER by school.schoolID
---------------------------------------------------------
result
----------------------------------------------------------
136 Early Childhood Education Bachelors 2 48
136 Education Bachelors 2 51
136 Education Masters 3 51
136 Elementary Education Bachelors 2 52
----------------------------------------------------------
Myquestion is how can I format the result to look like the one below? Thanks
136 Early Childhood Education Bachelors
136 Education Bachelors Masters
136 Elementary Education Bachelors
I'm new to this forumn and need your help. Below is the query that I am running and under it is the resulting table.
SELECT DISTINCT school.schoolID, field.[name],
degree. [name] AS degree, degree.degreeID,
field.fieldID
FROM school_field INNER JOIN
school_field_degree ON school_field.schoolID = school_field_degree.schoolID AND
school_field.fieldID = school_field_degree.fieldID INNER JOIN
school ON school_field.schoolID = school.schoolID INNER JOIN
degree ON school_field_degree.degreeID = degree.degreeID INNER JOIN
field ON school_field.fieldID = field.fieldID
WHERE school.schoolID = 136 AND school.siteID = 7
ORDER by school.schoolID
---------------------------------------------------------
result
----------------------------------------------------------
136 Early Childhood Education Bachelors 2 48
136 Education Bachelors 2 51
136 Education Masters 3 51
136 Elementary Education Bachelors 2 52
----------------------------------------------------------
Myquestion is how can I format the result to look like the one below? Thanks
136 Early Childhood Education Bachelors
136 Education Bachelors Masters
136 Elementary Education Bachelors