Hello all,
Does anyone know if there's a "min" command for Postgresql? I have a field in a table that has a sequential numbering format (i.e. 1, 2, 3, etc). I want to be able to query the table and pull the record with the smallest number (in this case, 1). I don't want to use a select statement ordering by asc and taking the top result. I'd like to be able to use a single, short query like you would use COUNT or something. Does anyone know how?
Thanks
Jisoo22
Does anyone know if there's a "min" command for Postgresql? I have a field in a table that has a sequential numbering format (i.e. 1, 2, 3, etc). I want to be able to query the table and pull the record with the smallest number (in this case, 1). I don't want to use a select statement ordering by asc and taking the top result. I'd like to be able to use a single, short query like you would use COUNT or something. Does anyone know how?
Thanks
Jisoo22