Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:51:43+00:00 2026-06-08T14:51:43+00:00

How do I find a minimum score from 4 different column of table? So,

  • 0

How do I find a minimum score from 4 different column of table?
So, if I have column 1 with minimum value is 4, column 2 with minimum value is 3, column 3 with minimum value is 2 and column 4 with minimum value is 1. I want the query is making the result exactly is 1 (from column 1, 2, 3 and 4)

By the way i am using MYSQL, thanks 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:51:45+00:00Added an answer on June 8, 2026 at 2:51 pm

    Use LEAST function in following way:

      SELECT LEAST(t.column1, t.column2,t.column3,t.column4) AS lowest
                                                            FROM table_name t
    

    From above mentioned documentation,

    • If the return value is used in an INTEGER context or all arguments
      are integer-valued, they are compared as integers.

    • If the return value is used in a REAL context or all arguments are
      real-valued, they are compared as reals.

    • If the arguments comprise a mix of numbers and strings, they are
      compared as numbers.

    • If any argument is a nonbinary (character) string, the arguments are
      compared as nonbinary strings.

    • In all other cases, the arguments are compared as binary strings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to the opencv...i want to find the minimum value in the matrix..but
Is there a way to find minimum value in array with custom compare function
Given an integer value, I need some way to find out the minimum number
I have list or vector of float numbers. How to find minimum value in
I have a list of words and i have to find the minimum word
So I need some help coming up with a way to find a Minimum
I need to find out the maximum and minimum value in a line by
I have to write an assembly program that will find the minimum of array
In python to find the index of the minimum value of the array I
Given a directed graph, I need to find the minimum set of vertices from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.