I have a block of Oracle SQL code that does work. I figured out I cannot get the cert column and the max(run_time) at the same time.
select
cert,
max(run_time)
from
bond_films
where title in
(
'Casino Royale','On Her Majesty_s Secret Service','Licence to Kill'
);
I was reading a SQL reference and it has the following syntax, but I thought my code matches the syntax?
SELECT [column,] group_function(column)
FROM table
[WHERE condition]
[GROUP BY group_by_expression]
[HAVING group_condition]
[ORDER BY column] ;
Can someone explain this to me or suggest a source which says I cannot write a code like I did?