Re: Query acting strangely
From: Hugo Kornelis (hugo_at_pe_NO_rFact.in_SPAM_fo)
Date: 04/08/04
- Next message: new: "Cannot open tables"
- Previous message: Sebastian: "Query acting strangely"
- In reply to: Sebastian: "Query acting strangely"
- Next in thread: sebastian: "Re: Query acting strangely"
- Reply: sebastian: "Re: Query acting strangely"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 08 Apr 2004 13:13:34 +0200
On Thu, 8 Apr 2004 03:46:03 -0700, Sebastian wrote:
>I have some problems with this query. It returns some information but not all.
>
>SELECT PAGE0.DOL, PAGE3.STATUS1, PAGE0.STATUS
>FROM PAGE0 INNER JOIN PAGE3. ON PAGE0.SERIAL = PAGE3.P_SERIAL
>WHERE (PAGE3.STATUS1 <> 'TOA') AND (PAGE0.STATUS = 'OPEN')
>
>For whatever reason this query doesn't return all the info in the table. I tested it somewhat and I noticed that if I reference only one table in the WHERE clouse all is working fine (except I can not filter my query the way I want to). If I remove PAGE3.STATUS <> 'TOA' then I get all the results. Is there sometihing wrong with this query? I am using SQL server 2000 SP3.
>
>Thanks For any help.
>Sebastian
I can't answer this without more information. Please post a repro
script that can help me reproduce and diagnose the problem.
A repro script consists of:
* DDL (create table statements) for the relevant tables, constraints
and indexes,
* insert statements with enough sample data to reproduce the error,
* the text of the query you're having trouble with.
Run the repro script in an empty (test) database to check that it
really reproduces the observed behaviour. Then, post it here, along
with the output you expected from that query.
Many of the regulars here will step in to help you correct the problem
if you post as suggested. Without that information, though, it's very
hard to help us at all (it's like phoning the garage, saying "why
doesn't my car work - it worked fine yesterday")
Best, Hugo
-- (Remove _NO_ and _SPAM_ to get my e-mail address)
- Next message: new: "Cannot open tables"
- Previous message: Sebastian: "Query acting strangely"
- In reply to: Sebastian: "Query acting strangely"
- Next in thread: sebastian: "Re: Query acting strangely"
- Reply: sebastian: "Re: Query acting strangely"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
- Re: ANY Win32_Printer query leaks ~500kbytes in wmiprvse.exe
... I can't repro this problem you are describe below is all, ... All the script
does below is put the remote server into a loop and does what ... >> Use of memory
by Windows is much more complex than most of us know about. ... (microsoft.public.win32.programmer.wmi) - Re: Merge filter inconsistant - MS Replication Problem.zip (0/1)
... I have attached the files you need to reproduce the problem. ... create_test_loc.sql
- script to create test databases on subscriber ... create_test_rep.sql - script to create
test databases on publisher ... fGetCurrentUserID.sql - script to create filter criteria
function on ... (microsoft.public.sqlserver.replication) - Re: Ksh output garbled/out-of-sync
... When you open one of the commented blocks and run the script as --- ...
For the "unordered" block, it hardly prints ... I am able to reproduce the problem
on several Solaris 5.8 systems now. ... (comp.unix.shell) - Re: Exceptions within MSHTML using IWebBrowser2 control
... The problem is very reproducible, and occurs on multiple systems. ... didn't
reproduce this on Vista. ... Microsoft Online Community Support ... where
an initial response from the community or a Microsoft Support ... (microsoft.public.win32.programmer.networks) - Re: timing problem with pthread_mutex_unlock and lock
... to reproduce the problem, compile first the code, and run the script. ...
the unlocking problem is easy, ... void function; ... (comp.programming.threads)