944,093 Members | Top Members by Rank

Ad:
  • MS SQL Discussion Thread
  • Unsolved
  • Views: 4251
  • MS SQL RSS
Jul 17th, 2006
0

select rows divisible by 5

Expand Post »
I'm trying to display only rows where the identity column is divisible by 5. Could someone help with this?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
beginner123 is offline Offline
2 posts
since Jul 2006
Jul 17th, 2006
0

Re: select rows divisible by 5

Quote originally posted by beginner123 ...
I'm trying to display only rows where the identity column is divisible by 5. Could someone help with this?
MS SQL Syntax (Toggle Plain Text)
  1. SELECT id FROM mytable mt WHERE (mt.id % 5) = 0
pty
Reputation Points: 64
Solved Threads: 39
Posting Pro
pty is offline Offline
530 posts
since Oct 2005
Jul 18th, 2006
0

Re: select rows divisible by 5

Quote originally posted by pty ...
MS SQL Syntax (Toggle Plain Text)
  1. SELECT id FROM mytable mt WHERE (mt.id % 5) = 0
Thanks very much!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
beginner123 is offline Offline
2 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS SQL Forum Timeline: Extracting data
Next Thread in MS SQL Forum Timeline: Hi,Need help on sql select statement structure





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC