SELECT col2 FROM table WHERE col1=max(col1?);
Jump to Post
It is unclear what you wish to achieve by seeing the query you have posted.
To simply select max from a column/attribute
SELECT max(sal) FROM EMP//Displays maximum salary for the EMP table
It may be noted that group functions can't be used after the
A second guess at …
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.