I am trying to remove certain rows based on unique values within the table and still display the other column data associated with the row.
For example:
x------------------------------------------------ x
x Process ID Name Address Random Data x
x------------------------------------------------ x
x 123 TestName TestAdd qwrj3ri x
x 456 TestName2 TestAdd qwerty x
x 789 TestName TestAdd qwrj3ri x
x 1234 Testing123 tester asdfghjk x
---------------------------------------------------
In access, after importing the table from excel.
I used this query:
SELECT DISTINCT Test.Name, Test.Address
FROM Test;
The problem is that while it displays the Unique Name
and Address
, I also would like to display the Process ID
, and Random Data
column that is associated with the Unique Name, and Address. What I am trying to do is remove duplicate based on the name and address and still display the relevant data for the unique value/row.