My table contains two fields std_id & course. data is given as under:
std_id course
12 c
15 java
15 vb
13 java
13 c
14 cobol
14 java
15 c
i want to select the students id who has registered for java and C only means output = 13 from the above data.

Kindly help me for writing select statement.