Hi!
I have tables A and B.
1.) How can I delete records from table A only, where A.KEY = B.KEY with a QUERY?
2.) How can I delete records from table A and B, where A.KEY = B.KEY with a QUERY?
I have belived that DELETE queries do not work on joined tables? Somebody has shown me a solution to question
1.) DELETE DISTINCTROW FROM B.KEY,A.* FROM B IINER JOIN A ON B.KEY=A.KEY;
What is the keyword: the DISTINCTROW?
What happens in case of substituting "B.*,A.*"?
What happens if I omit DISTINCTROW?
What are the rules of delete queries containing joins? Where are these exactly written?
Regards
Ferenc Nagy
[tt]
Ferenc Nagy
|\ /~ ~~|~~~ nagyf@alpha0.iki.kfki.hu Fax: (36-1)-392-2529 New!
| \ | | Institute of Isotope and Surface Chemistry
| \ | -+- 1525 Bp. POB 77. Tel. 36-1)-392-2550
| \| | `-' ' `-' "The goal of the life is the struggle itself"
[/tt]
I have tables A and B.
1.) How can I delete records from table A only, where A.KEY = B.KEY with a QUERY?
2.) How can I delete records from table A and B, where A.KEY = B.KEY with a QUERY?
I have belived that DELETE queries do not work on joined tables? Somebody has shown me a solution to question
1.) DELETE DISTINCTROW FROM B.KEY,A.* FROM B IINER JOIN A ON B.KEY=A.KEY;
What is the keyword: the DISTINCTROW?
What happens in case of substituting "B.*,A.*"?
What happens if I omit DISTINCTROW?
What are the rules of delete queries containing joins? Where are these exactly written?
Regards
Ferenc Nagy
[tt]
Ferenc Nagy
|\ /~ ~~|~~~ nagyf@alpha0.iki.kfki.hu Fax: (36-1)-392-2529 New!
| \ | | Institute of Isotope and Surface Chemistry
| \ | -+- 1525 Bp. POB 77. Tel. 36-1)-392-2550
| \| | `-' ' `-' "The goal of the life is the struggle itself"
[/tt]