| | |
select rows divisible by 5
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
•
•
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)
SELECT id FROM mytable mt WHERE (mt.id % 5) = 0
•
•
Join Date: Jul 2006
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by pty
MS SQL Syntax (Toggle Plain Text)
SELECT id FROM mytable mt WHERE (mt.id % 5) = 0
![]() |
Similar Threads
- Parsing CSV with php (PHP)
- MySQL SELECT rows In a Date Range (MySQL)
- Search Code Question (MS Access and FileMaker Pro)
- table and the index size(individually). (MS SQL)
- table and the index size(individually). (MS SQL)
- Use of DataGrid (ASP.NET)
Other Threads in the MS SQL Forum
- Previous Thread: Extracting data
- Next Thread: Hi,Need help on sql select statement structure
| Thread Tools | Search this Thread |
autogrowth connectingtodatabaseinuse count cursor data database datepart dbsize deadlock delete_trigger highperformancecomputing hpc hpcserver2008 ibm iis loop maximum microsoft ms mssql multiple multithreading news number permission query reporting result server services sets source sql sqlserver sqlserver2005 supercomputing tables uniqueid update view





