SELECT SQL multiple of N
I need a little help, I have the following situation:
SELECT MULTI, N FROM TABLE;
Selection result:
MULTI N
14 5
13 10
13 10
5 5
14 7
In this case, I only want what matches this:
if (N % MULTI == 0)
, therefore 5
and 5
will be valid 7
and 14
also.
I don't know how to do this in mine WHERE
. Hope you can help me here. Many thanks!
+3
source to share