Re: someone help
- From: Hugo Kornelis <hugo@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Jun 2005 21:11:01 +0200
On Mon, 13 Jun 2005 07:50:05 -0700, Sujay wrote:
>For ORG_ID: I have the query below.. can anyone help me with it.. this is the
>first time I am creating SPs.. thanks in advance
(snip)
Hi Sujay,
I've read your post three times now, but I still have no idea what
you're trying to do. The way you describe your problem is merely
confusing me. You describe your query as if you were writing a Cobol
program, using consecutive steps to get to the result for one row, and
repetaing this for all rows. That's not how SQL works.
Since the description didn't help, I then tried to figure out what
you're doing in the query you posted. Without any luck, as you
repeatedly use illegal SQL constructions such as "a = b IN (...)"; not
only is that invalid SQL, it also doesn't make any sense to me as
pseudo-code.
The best way to get help on SQL related problems is to include the
following in your post:
1. The structure of all tables that are relevant to your problem, posted
as CREATE TABLE statements. Do include all constraints, properties and
indexes. Irrelevant columns may be omitted.
2. A few well-chosen rows of sample data, posted as INSERT statements.
Try to make the sample data as unambiguous as possible, in as few rows
as possible. Ten to twenty rows per table is typically a good size,
though more or less may be needed for more or less complex problems.
3. The required output, based on the sample data you provided.
4. An explanation of the business problem you;re trying to solve, in
layman's terms.
Check out this page as well: www.aspfaq.com/5006.
If you repost your problem, following the guidelines above, then I'm
sure that someone will be able to help you.
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)
.
- Follow-Ups:
- Re: someone help
- From: Sujay
- Re: someone help
- References:
- someone help
- From: Sujay
- someone help
- Prev by Date: Re: IN vs EQUAL
- Next by Date: Re: Any Idea
- Previous by thread: someone help
- Next by thread: Re: someone help
- Index(es):
Relevant Pages
|