Solved

How do I write a Delete query in SQL?

Posted on 2014-10-22
2
66 Views
Last Modified: 2014-10-22
In SQL, How do I convert the following select query so that it deletes the selected records?  

SELECT 
  DISTCUST.DISTRIBUTOR,
  DISTCUST.DISTCUSTOMER,
  DISTCUST.CUSTOMER,
  DISTCUST.ZIPCODE,
  DISTCUST.CUSTOMERIDT
FROM
  DISTCUST
WHERE
  DISTCUST.DISTRIBUTOR = '07030'

Open in new window


Thank you.
TH
0
Comment
Question by:thutchinson
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40397237
DELETE FROM
  DISTCUST
WHERE
  DISTCUST.DISTRIBUTOR = '07030'

Open in new window

0
 

Author Closing Comment

by:thutchinson
ID: 40397667
That did it.  Thank You!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As they say in love and is true in SQL: you can sum some Data some of the time, but you can't always aggregate all Data all the time! Introduction: By the end of this Article it is my intention to bring the meaning and value of the above quote to…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now