How to get the min,max values from row level(Not in columns) in PostgreSQL.
postgresql> SELECT * FROM employee;
+------+------+------------+--------------------+
| id | name | q1 | q2 | q3 | q4 |
+------+------+------------+--------------------+
| 1 | John | 20 | 30 | 10 | 4 |
| 2 | Ram | 07 | 10 | 03 | 04 |
| 3 | John | 05 | 03 | 15 | 40 |
| 4 | Sree | 12 | 05 | 20 | 25 |
I need single select query to get the min and max values. How to solve this. Where conditions is (Where id = 4) but I need the result is min value is 05 and max value is 25 from employee table.