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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL REF? Function to return "Multiple of X"

Status
Not open for further replies.

j2112

IS-IT--Management
May 14, 2003
1
US
Goal:
Return all records where columnA is a multiple of 3.

Anyone know of an sql statement that will do this?

Thanks, j2112
 
J2112,
How about something like:

SELECT COLCOUNT FROM SYSIBM.SYSTABLES
WHERE COLCOUNT/3 * 3 = COLCOUNT


Marc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top