anonymous
  • anonymous
If it is possible, how to select the value of the largest numerical field of the same record / row (as opposed to the largest value in the same column). Something like select id, max (f1,f2,f3,f4) as f from table; Where f would give the largest number of those four fields ... This is just an example what Id like to have it actually does not work.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Im looking for an SQL statement as a solution, I have a solution in a spreadsheet program.
anonymous
  • anonymous
This does the job Select max(val) From ( Select max(f1) as val FROM table union Select max(f2) as val FROM table union Select max(f3) as val FROM table union Select max(f4) as val FROM table ) subquery

Looking for something else?

Not the answer you are looking for? Search for more explanations.