My table is like this -
+---------+---------------+------+-----+---------+-------+
| PK | ToicID |topic1|topic2| topic3 |topic4 |
+---------+---------------+------+-----+---------+-------+
| 1 | 1 | abc | xyz | mno | pqr |
+---------+---------------+------+-----+---------+-------+
I use this query-
select * from table order by rand() limit 1
it's giving me only random row. But I want to select any topic random like following
Topic3
|mno|
==========================================
But conditon is that column should't empty or null.