I have a table like this:
book_no lang price shelf
---------- -------- --------- -----
1 eng 20 a
4 french 34 a
2 eng 26 b
7 russian 71 b
12 german 33 a
43 french 15 d
11 eng 43 c
14 rusian 33 a
19 eng 20 d
24 french 40 c
23 eng 57 a
27 russian 48 b
42 german 31 c
25 french 15 d
from this table i want to get book_no, language, shelf.
Languages that are present more than three times should only show books.
I tried:
select book_no,lang,shelf from a where (count(lang)>3)
in advance for help
source
share