Access Query Result in One Row (1 Viewer)

waqas ali

New member
Local time
Today, 06:15
Joined
Jan 8, 2017
Messages
2
Hi Experts,

I want to see query result with id numbers, Count of id numbers and in third column count detail.

records are as below in table.

1234 T1
1234 T2
1234 T3

Result of query should be.

1234 count = 3 , in detail column T1,T2,T3

How can I get result in one row? :)
 

June7

AWF VIP
Local time
Yesterday, 18:15
Joined
Mar 9, 2014
Messages
5,466
ConcatRelated function can get detail column. An aggregate query can get count.

SELECT ID, Count(*) AS CountRecs, ConcatRelated(…) As Details FROM table GROUP BY ID, ConcatRelated(…);
 

Users who are viewing this thread

Top Bottom