Create View V1 as

Select ΚΩΔΒΙΒΛΙΟΥ, count(ΚΩΔΔΑΝ)as PLHTHOS1

From ΔΑΝΕΙΣΜΟΙ

Group by ΚΩΔΒΙΒΛΙΟΥ

 

 

Create View V2 as

Select ΚΩΔΒΙΒΛΙΟΥ, ΤΙΤΛΟΣ, PLHTHOS1

From ΔΑΝΕΙΣΜΟΙ, V1

Where ΔΑΝΕΙΣΜΟΙ.ΚΩΔΒΙΒΛΙΟΥ = V1.ΚΩΔΒΙΒΛΙΟΥ and PLHTHOS1 in

(Select MAX(PLHTHOS1) From V1)