SQL Help Maybe?? Or ASP??

B

Bamarama007

First, I am using FP 2002, Access DB with SQL ...
Is there a way to use SQL or ASP to get the results to display every other line
in a DB table? Like show ODD numbered ID's or show Even numbered ID's ??
Like, if I have 100 entrys into my DB, but only want the ODD ones or EVEN ones
to appear on my page. Can this be done?
Jeff
 
K

Kevin Spencer

SELECT * FROM MyTable WHERE IdField Mod 2 = 0 (Even)
SELECT * FROM MyTable WHERE IdField Mod 2 > 0 (Odd)

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top