Create View V1 as

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

From ΔΑΝΕΙΣΜΟΙ

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

 

 

Create View V2 as

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

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

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

PLHTHOS1 = MAX(PLHTHOS1)