Hi,
could you please help me on below scenario.
- data table having multiple columns, from this we need to get 3 rows with distinct "date"values from input data.
Ex:Input data
Category | Brand | Model | date |
---|---|---|---|
abc1 | exe0001 | rgg345 | 9/6/2024 |
abc2 | exe0002 | rgg346 | 9/6/2024 |
abc3 | exe0003 | rgg347 | 9/7/2024 |
abc4 | exe0004 | rgg348 | 9/8/2024 |
abc5 | exe0005 | rgg349 | 9/7/2024 |
abc6 | exe0006 | rgg350 | 9/10/2024 |
abc7 | exe0007 | rgg351 | 9/11/2024 |
abc8 | exe0008 | rgg352 | 9/10/2024 |
abc9 | exe0009 | rgg353 | 9/10/2024 |
Output:(we can pick any 3 random rows with date as unique )
Category | Brand | Model | date |
---|---|---|---|
abc1 | exe0001 | rgg345 | 9/6/2024 |
abc3 | exe0003 | rgg347 | 9/7/2024 |
abc6 | exe0006 | rgg350 | 9/10/2024 |
TIA