Hi All,
i want to write a query that allows me to view all records from my Details table, if multiple names have the same age, i just want to show one row with that name and age. For example below from "Details" i just want to view Peter and Adam
I've attempted this but it just prints all rows
Many thanks
i want to write a query that allows me to view all records from my Details table, if multiple names have the same age, i just want to show one row with that name and age. For example below from "Details" i just want to view Peter and Adam
Code:
ID | Name | Age
1 Peter 19
2 Adam 18
3 John 19
Select ID, ForeName as Name, Age From Details
GROUP BY Age
I've attempted this but it just prints all rows
Many thanks