473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stupid delete logical question

In DB2/400, if I run this statement: delete from ordvcrec a where not
exists(select * from i$paint b where a.part#=b.i$par t)

Where ORDVCREC is a join logical of physical files ORDVALID and
ORDMASCREC, will the rows being deleted be the "logical" rows from
ORDVCREC only, or could physical rows (records) be wiped out in
ORDVALID or ORDMASCREC?

I am assuming that only logical rows will be deleted from ORDVCREC,
but I am afraid to try it...

Thanks for any and all opinions and answers...
Jan 13 '08 #1
2 2098
In DB2/400, if I run this statement: delete from ordvcrec a where not
exists(select * from i$paint b where a.part#=b.i$par t)
As Chuck as answered in c.s.i.a.misc, you have to delete records from
the physical files as
"a Join Logical file [SQL VIEW, or DDS LF], will not be update capable."

To check this, "Refer to DSPFD ORDVCREC to confirm that the database
considers the VIEW to disallow update capabilities"

Thanks for any and all opinions and answers...
Hi
Stefano P.

--
"Niuna impresa, per minima che sia,
può avere cominciamento e fine senza queste tre cose:
e cioè senza sapere, senza potere, senza con amor volere"
[Anonimo fiorentino, XIV sec.]

(togliere le "pinzillacchere " dall'indirizzo email ;-)
Jan 13 '08 #2
On Jan 13, 4:47*pm, "Stefano P." <procs...@pinzi llacchere.yahoo .it>
wrote:
In DB2/400, if I run this statement: *delete from ordvcrec a where not
exists(select * from i$paint b where a.part#=b.i$par t)

As Chuck as answered in c.s.i.a.misc, you have to delete records from
the physical files as
"a Join Logical file [SQL VIEW, or DDS LF], will not be update capable."

To check this, "Refer to DSPFD ORDVCREC to confirm that the database
considers the VIEW to disallow update capabilities"
Thanks for any and all opinions and answers...

Hi
* * * * Stefano P.

--
"Niuna impresa, per minima che sia,
* può avere cominciamento e fine senza queste tre cose:
* e cioè senza sapere, senza potere, senza con amor volere"
* * * * * * * * *[Anonimo fiorentino, XIV sec.]

(togliere le "pinzillacchere " dall'indirizzo email *;-)
Thanks, Stefano.
Jan 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
2013
by: cppaddict | last post by:
Hi, I am deleting some objects created by new in my class destructor, and it is causing my application to error at runtime. The code below compiles ok, and also runs fine if I remove the body of the destructor. So I think I am somehow using delete incorrectly, but I'm not sure exaclty what I'm doing wrong. I'd apprecitate any clarification and suggestions for rewriting the below properly.
4
2033
by: GianGuz | last post by:
Global new and delete operators can be overloaded to suite particulars needs. Typically they are overloaded to insert useful debugging/trace informations. What I would to discuss here concerns the possibility of overload these operators not at the global level namespace but into different program namespaces. For instances: #include<iostream> using namespace std;
5
5032
by: hpi | last post by:
Hello, I have a table : Batch It contains fields batchnummer : Number (Long Integer) datum : Date/Time status : Number (Long Integer) nr_records : Number (Long Integer)
6
1608
by: Adam Smith | last post by:
I have posted this and similar questions repeatedly and can't even raise a single response. I am being led to believe that this then 'Must be a stupid question' although people say that there is no stupid question. Is that another for political correctness I am attempting an install of 7.4.3 on FreeBSD O/S 4.9, apparently remnants of 7.3.x are scattered around on the disk from (a) previous ports installation, causing mutex_lock/unlock,...
0
902
by: engwar | last post by:
C# newbie here. I'm creating a page that will use a repeater control to display thumbnail images. I want to have a button next to each image so that the user can delete a particular image by clicking on the 'delete' button next to it. I'm having trouble determining how to pass the id of the image to my codebehind when the user clicks a particular delete button.
19
1661
by: Leslie Kis-Adam | last post by:
Hi everyone! Can anyone explain me this program? I'm getting really confused. thx in advance. Laszlo Kis-Adam <dfighter@freemail.hu> "
0
1184
by: Roald | last post by:
I am working on an application that needs to implement logical deletes instead of removing the records permanently. The logical delete works by setting 3 fields (deleted flag, date and user). I have been trying to replace the DeleteCommand query text of the FormView with an UPDATE statement, but keep getting an error 'Must declare scalar variable @delete_user'. The update statement looks like this: UPDATE SET = N''Y'', =
9
6496
by: AWW | last post by:
Running XP - Visual Studio 2005 - VB Want to have duplicate projects - one safe and stable - other for experimenting Can't fine easy way to make duplicate project. Stupid question? or stupid ME? Thanks.
0
8399
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6169
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4159
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.