Try this:
SELECT T1.idA, T1.infos
FROM XXX T1
JOIN
(
SELECT idA
FROM XXX
GROUP BY idA
HAVING COUNT(*) >= 2
) T2
ON T1.idA = T2.idA
The result for the data you posted:
idaA infos 201 1899 201 1959
More Related Contents:
- SQL Query needed for fetch value from Two identical table but not fully identical table
- SQL select only rows with max value on a column [duplicate]
- How to create a MySQL hierarchical recursive query?
- Error related to only_full_group_by when executing a query in MySql
- How to reset AUTO_INCREMENT in MySQL
- How to declare a variable in MySQL?
- MySQL Query GROUP BY day / month / year
- MySQL Cannot Add Foreign Key Constraint
- Grouping into interval of 5 minutes within a time range
- SQL counting all rows instead of counting individual rows
- Convert timestamp to date in MySQL query
- Update a column value, replacing part of a string
- MySQL comparison with null value
- MySQL Like multiple values
- In MySQL, should I quote numbers or not?
- Matching all values in IN clause
- MySQL add days to a date
- INTERSECT in MySQL
- mysql dynamic query in stored procedure
- Check for x consecutive days – given timestamps in database
- How to alter a column and change the default value?
- How to select one row randomly taking into account a weight?
- Remove special characters from a database field
- MySQL – Replace Character in Columns
- Sort the rows according to the order specified in WHERE IN clause
- update a column by subtracting a value
- How can I use SQL’s YEAR(), MONTH() and DAY() in Doctrine2?
- What happens when I exhaust a bigint generated key? How to handle it?
- is there a length limit to group_concat or another reason why it would not work on a text field
- Deleting a row based on the max value