Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD22] Deleting all child [dependent] records in a multi-tenant file (no replies)

$
0
0
Hello,

[WD22] [ using postgres now, should work with any database ] [ multi - tenant ]

I need to delete a set of records which is having dependent child records also in the same file. Say

TenantInd Code Name ParentCode
100 101 Name - 1 Null
100 102 Child - 11 101
100 103 Child - 111 102
100 104 Child - 1111 103
....

I need to delete records pertaining to TenantID = 100 only. Since this records are having FK integrity, it need to be deleted from the last child to first parent [ bottom up approach ? ].

Is there any simple way of deleting those records in Windev, that I need not go through writing cursors or something similar ?

Happiness Always
BKR Sivaprakash

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>