May 14, 2003 #1 j2112 IS-IT--Management Joined May 14, 2003 Messages 1 Location US Goal: Return all records where columnA is a multiple of 3. Anyone know of an sql statement that will do this? Thanks, j2112
Goal: Return all records where columnA is a multiple of 3. Anyone know of an sql statement that will do this? Thanks, j2112
May 14, 2003 #2 MarcLodge Programmer Joined Feb 26, 2002 Messages 1,886 Location GB J2112, How about something like: SELECT COLCOUNT FROM SYSIBM.SYSTABLES WHERE COLCOUNT/3 * 3 = COLCOUNT Marc Upvote 0 Downvote
J2112, How about something like: SELECT COLCOUNT FROM SYSIBM.SYSTABLES WHERE COLCOUNT/3 * 3 = COLCOUNT Marc
May 15, 2003 #3 sathyarams IS-IT--Management Joined Jan 2, 2002 Messages 290 Location GB Remember, here COLCOUNT is an INTEGER Cheers Sathyaram More DB2 questions answered at http://www.dbforums.com/f8 Upvote 0 Downvote
Remember, here COLCOUNT is an INTEGER Cheers Sathyaram More DB2 questions answered at http://www.dbforums.com/f8