473,396 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Question about relational delete query

ja
Hello,

I am new to ms access. I am trying to do a relational delete query.
Here is what I would do in ms sql:

delete t1
from t1, t2
where t1.f1 = t2.f1

I've been trying to to do it in ms access 2002 using the wizard,
desing and sql modes. I can't figure out what ms is requesting me to
do.

Would you help me?

tia

ja
Nov 13 '05 #1
2 1706
On Tue, 24 May 2005 18:49:19 GMT, ja <yo*@me.net> wrote:
Hello,

I am new to ms access. I am trying to do a relational delete query.
Here is what I would do in ms sql:

delete t1
from t1, t2
where t1.f1 = t2.f1

I've been trying to to do it in ms access 2002 using the wizard,
desing and sql modes. I can't figure out what ms is requesting me to
do.

Would you help me?


I think what you need is...

DELETE t1.*
FROM t1
INNER JOIN t2
ON t1.f1 = t2.f1
Nov 13 '05 #2
I've had better luck doing it this way:

DELETE t1.*
FROM t1
WHERE t1.f1 IN (SELECT DISTINCT t2.f2 FROM t2)
"ja" <yo*@me.net> wrote in message
news:bn********************************@4ax.com...
Hello,

I am new to ms access. I am trying to do a relational delete query.
Here is what I would do in ms sql:

delete t1
from t1, t2
where t1.f1 = t2.f1

I've been trying to to do it in ms access 2002 using the wizard,
desing and sql modes. I can't figure out what ms is requesting me to
do.

Would you help me?

tia

ja

Nov 13 '05 #3

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

Similar topics

18
by: Guinness Mann | last post by:
Greetings, I think I saw an article yesterday in which you told someone not to make an Identity column a primary key. I seem to remember you saying something like "It undermines the entire...
5
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
8
by: K.Fawcett | last post by:
I am doing a simple insert into a table and I would like the data to be retrieved in the order it is inserted not by what appears to be alphabetical order. insert into mytbl values('c') insert...
49
by: Mike MacSween | last post by:
I frequently hear that there isn't a commercially available dbms that fully implements the relational model. Why not? And which product comes closest. Mike MacSween
14
by: Jason.A.Oliver | last post by:
Okay this will hopefully be my last question for awhile since I've had a bunch over the last few weeks. Thank you all for being patient with me:) Last major obstacle is trying to set up combo...
17
by: (PeteCresswell) | last post by:
I've got apps where you *really* wouldn't want to delete certain items by accident, but the users just have to have a "Delete" button. My current strategies: Plan A:...
0
by: frebe | last post by:
On 10 Apr, 23:26, siddharthkh...@hotmail.com wrote: You have made a good job describing why report/section/lineitem should not be modelled as classes. Using relational algebra, your problem...
3
by: bob laughland | last post by:
Hi All, I have a SQL query like this (I have tried to break the problem down to simplify it), select rowid from table where name in ('a', 'b', 'd') group by rowid Here is an example of data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.