-1

This is my query

select *
from table  
where a in (select a,b,count(*) from table where b= 99991231 group by 1,2 having count(*) > 1)  ;

ERROR 4829:  Subquery has too many columns

I want to select those values of a where b's value is 99991231 and is repeated more than one

Swathi8038
  • 96
  • 2
  • 11

1 Answers1

1

Without subquery you can write it as

select a
from table 
where b= 99991231 
group by a
having count(*) > 1
M Khalid Junaid
  • 63,861
  • 10
  • 90
  • 118