Re: Select all odd/even records.
From: Joe Celko (jcelko212_at_earthlink.net)
Date: 06/11/04
- Next message: Novice: "RE: Insert query fed by select query"
- Previous message: Joe Celko: "Re: Is There a Better Way? (Incrementing PK Column)"
- In reply to: Benny: "Select all odd/even records."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Jun 2004 12:27:28 -0700
>> Assume i have a table with 100 records [sic]. How can i select all
odd records [sic] (i.e. record [sic] 1, 3, 5...) or even records
[sic](i.e. 2, 4, 6)? <<
Let's get back to the basics of an RDBMS. Rows are not records; fields
are not columns; tables are not files; there is no sequential access or
ordering in an RDBMS, so "first", "next" and "last" are totally
meaningless.
Want to try again with DDL and a question that makes sense?
--CELKO--
===========================
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in your
schema are.
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Novice: "RE: Insert query fed by select query"
- Previous message: Joe Celko: "Re: Is There a Better Way? (Incrementing PK Column)"
- In reply to: Benny: "Select all odd/even records."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|