easy question i think.
I have this table
+-----------------------------+
+ ip | campaignid +
+-----------------------------+
+ 1.1.1.1 | 3 +
+ 1.1.1.1 | 17 +
+ 1.1.1.1 | 4 +
+ 2.2.2.2 | 8 +
+-----------------------------+
i want to get a query where ip = '1.1.1.1' like this:
+-----------------------------+
+ ip | count | campaigns+
+-----------------------------+
+ 1.1.1.1 | 3 | 3,17,4 +
+-----------------------------+
I know how to get this done in php, but is it possible to get this result with an sql query?
Thank you very much in advance.