Re: Serious errors with 'Create view' command
- From: Barley Man <BarleyMan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 22 Sep 2006 04:46:01 -0700
Hi Tom
I can't get the view designer to create the coding that I need, either! It
doesn't come out with the same brackets. How are you suggesting that I cut
and paste it? It's the 'text' in the view designer 'sql view' that's WRONG in
the first place and thus cutting and pasting that would just repeat the
problem. To where are you suggesting tyhat I 'paste' the cut-out anyway? I
can't paste it INTO the view designer sql view window as that's Read Only!
There is the facility to 'edit stored procedures' but I can't seem to make
that do ANYTHING!
ian
"tom knauf" wrote:
Hi,.
I would create the view in the viewdesigner and cut/paste the code generated
by the viewdesigner (right click - view sql)
HTH
Tom
"Barley Man" <BarleyMan@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:A4DB29BB-1787-4E90-83A6-2209790A74EA@xxxxxxxxxxxxxxxx
I have used the following 'create view' statment:-
Create Sql View combinedview;
AS Select inventory.inumbr, inventory.divno, inventory.deptno,
inventory.subdeptno, inventory.classno, ;
inventory.istyl;
FROM inventory ;
WHERE (?mydivno <= 0 Or divno = ?mydivno);
AND (?mydeptno <= 0 Or deptno = ?mydeptno);
AND (?mysubdeptno <= 0 Or subdeptno = ?mysubdeptno);
AND (?myclassno <= 0 Or classno = ?myclassno)
However, when I 'inspect' (modify) the created View by looking at the sql,
the 'view' created is NOT the same as the one I requtested and appears as
follows:-
SELECT Inventory.inumbr, Inventory.divno, Inventory.deptno,;
Inventory.subdeptno, Inventory.classno, Inventory.istyl;
FROM drilldown2!inventory;
WHERE ?mydivno <= 0;
OR (Inventory.divno = ?mydivno;
AND ?mydeptno <= 0);
OR (Inventory.deptno = ?mydeptno;
AND ?mysubdeptno <= 0);
OR (Inventory.subdeptno = ?mysubdeptno;
AND ?myclassno <= 0);
OR (Inventory.classno = ?myclassno)
The change is not immediately obvious to see but it IS there. The
positioning (and thus the effects) of the brackets have changed
SUBSTANTIALLY
and the routine simply fails to perform properly. I need the EXACT
functionality of the statement contained within the 'create
view'instructions
but I simply can't get it to 'transfer' into the database as a 'view'!
It does not appear to be a simple error in the 'view sql' routine as the
view BEHAVES EXACTLY in line with the version being displayed by 'view
sql'
and that's NOT what I want, nor what I requested!
What on EARTH am I supposed to do about THAT?
Ian
- Follow-Ups:
- Re: Serious errors with 'Create view' command
- From: tom knauf
- Re: Serious errors with 'Create view' command
- References:
- Re: Serious errors with 'Create view' command
- From: tom knauf
- Re: Serious errors with 'Create view' command
- Prev by Date: Re: Serious errors with 'Create view' command
- Next by Date: Re: Serious errors with 'Create view' command
- Previous by thread: Re: Serious errors with 'Create view' command
- Next by thread: Re: Serious errors with 'Create view' command
- Index(es):
Relevant Pages
|