SELECT col2 FROM table WHERE col1=max(col1?);
rajhoq12 0 Light Poster
Recommended Answers
Jump to Post— delta_frost 0It is unclear what you wish to achieve by seeing the query you have posted.
To simply select max from a column/attributeSELECT max(sal) FROM EMP//Displays maximum salary for the EMP table
It may be noted that group functions can't be used after thewhereclause
A second guess at …
All 2 Replies
delta_frost 0 Newbie Poster
rishif2 57 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.