Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Incorrect syntax

$
0
0

I try to run this queriy

select first_name, last_name, age
from student
where student.age = (select max(student.age) from student
and student.student_type = 'Overseas Student');

but i'm getting error

Msg 156, Level 15, State 1, Line 4
Incorrect syntax near the keyword 'and'.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>