untypical problem
- From: "dgront" <dgront@xxxxxxxxxxxxxx>
- Date: 16 Jul 2005 10:54:42 -0700
That problem comes from biosciences, here I present a simpler version.
The story is about beads.
* A single necklace is composed of a couple of strings with beads,
appx. 3-10 strings in one necklace
* A single string of beads is composed of several hundreds of beads of
different shapes and colours
* Beads in each string are ordered, strings in a given necklace are
ordered
* Beads can have many properties, eg. colour spots (number of the spots
and their colours can vary)
I have a SQL database for all my 20 000 neckaces, containing about 100
000 strings and 30 000 000 beads. My common queries are:
- which necklace have at least 1 string with no more than 200 yellow
beads
- which beads are green and cubic-like and have at least 5 brown spots
And here is the QUESTION:
Is it possible to ask my database a question concerning the order of
beads in a string? For example I'd like to ask about any combination
like regular expression:
RBY..R*RRR
which means redbead, then blue bead, then yellow, then any two beads
(meta sign >.<), then red again, then any number of any beads followed
by three red beads. Of course I need to use anny properties stored in
the database, not only the colours of beads (shape, number of spots,
colours of spots, etc.).
I can rebulit my database from scratch and adjust its structure, I am
just asking if it is possible with SQL
Thanks in advance
Dominik
.
- Follow-Ups:
- Re: untypical problem
- From: Neo
- Re: untypical problem
- From: John Gilson
- Re: untypical problem
- From: --CELKO--
- Re: untypical problem
- Prev by Date: Re: Complicated database problem
- Next by Date: Re: untypical problem
- Previous by thread: [ANN] SQLeonardo / FreeQueryBuilder
- Next by thread: Re: untypical problem
- Index(es):
Relevant Pages
|