Re: multiple values

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Joe Celko (jcelko212_at_earthlink.net)
Date: 08/16/04


Date: Mon, 16 Aug 2004 14:22:29 -0700


>> Does anyone has a some good advice/example how to store multiple
values for a field [sic]. <<

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. BY DEFINITION a column holds scalar values.

You have completely missed the most basic ideas of an RDBMS and are now
hunting for kludges.

>> For single choice fields [sic], i use a combobox in access and the
value will be an integer number, but how about when a field [sic] has
multiple choices? Should i
use a listbox with multiple select enabled for visual appearance. <<

Next mistake; you do not know about physical and logical levels in a
system. There is no such thing as a combobox in SQL; that is front end
stuff and has nothign to do with the database.

>>I'm running out of ideas, can anyone help me on this? <<

I'll bet you have never read a book on RDBMS; you might want to start
with that. You are so completely off-base that a newsgroup cannot
really help you. The best we can do is throw out a kludge or try to do
your job for you.
 
--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 Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: How to find first not null value in column
    ... Let's get back to the basics of an RDBMS. ... Next, you are talking about SQL as if you were in a file system, where ... WHERE klugger IS NULL ...
    (comp.databases.ms-sqlserver)
  • Re: id record for each table
    ... relational model. ... Let's get back to the basics of an RDBMS. ... all SQL product use physically contigous storage). ... Please get any basic intro book on RDBMS and read it. ...
    (microsoft.public.sqlserver.programming)
  • Re: Row sequence number
    ... Let's get back to the basics of an RDBMS. ... are not columns; tables are not files; there is no sequential access or ... cursor or in an OVERclause. ... You are making a fool of yourself by not knowing the basics. ...
    (comp.databases.ms-sqlserver)
  • Re: Help from Gurus with SQL query
    ... Let's get back to the basics of an RDBMS. ... that would be a violation of ISO-11179 and common data ... telling the compiler the datatype of a variable, ...
    (microsoft.public.sqlserver.programming)