Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Returning non whole numbers divisions.

Status
Not open for further replies.

mwalsh

Programmer
Jun 27, 2000
1
US
I am looking for a way to return only the rows that have fractional numbers as the return to their division.  For example if untqty/units was a whole number I would want to eliminate it from the rows returned, but if it was a fraction then I would like it in the rows returned.
 
Which dbms are you using?&nbsp;&nbsp;Does it have the &quot;mod&quot; function?&nbsp;&nbsp;Mod(a,b) returns the remainder that a leaves when divided by b.&nbsp;&nbsp;If so you can use something like<br><br>select * from your_table where mod(untqty,unit) &gt; 0;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top