database - Get Maximum Value -


i using ms access database. have table (proposal) following properties: proposalid - pk, title, requestedamount, researcherid - fk

i want run sql query candidate has requested highest amount. query didn't work is:

select proposalid, title, max(requestedamount) budget, researcherid proposal; 

how can fix this.. thanks

select proposalid, title, requestedamount bugdet, researcherid proposal requestedamount = (select max(requestedamount) proposal); 

you can try one...


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -