Avatar of davetough
davetough asked on

DELETING ONE FIELD WHERE ANOTHER FIELD HAS CERTAIN DESCRIPTION

hELLO,
I have a table and it has no primary key.
I want to delete records in one field where another field ="Out of Order"
It seems to be deleting the Out of Order records tooor all of record-
Can you just deltete data in one field (IdNo) and leave the rest of record intact?
thank you
DELETE [TABLE1].IdNo
FROM [REPAIR TABLE]
WHERE ((([TABLE1].Results)="Out of Order"));

Open in new window

SQL

Avatar of undefined
Last Comment
Sean Stuber

8/22/2022 - Mon
Sean Stuber

update [REPAIR TABLE]
set IdNo = null
where Results = "Out of Order"
ASKER
davetough

getting error about word null
I notice I did not give my right code
DELETE [TABLE1].IdNo
FROM [TABLE1]
WHERE ((([TABLE1].Results)="Out of Order"));
ASKER CERTIFIED SOLUTION
Sean Stuber

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck