Solved

Help with sproc syntax (DELETE)

Posted on 2011-09-28
2
351 Views
Last Modified: 2012-05-12
Hi All,

I think its a pretty simple sproc but cannot get it right. any help?

--------------------------------------

BEGIN
DELETE From Bd_StuCrs bd

Inner Join Tbl_Student st On
bd.StuCrs_Stu_UserID = st.Student_UserID

WHERE bd.StuCrs_Stu_UserID = st.Student_UserID
AND st.Student_ISPurged = 1

END

-----------------------------------------------------

Kind regards

A
0
Comment
Question by:Abiel de Groot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Anuj earned 500 total points
ID: 36716068
BEGIN
DELETE From Bd_StuCrs
FROM Bd_StuCrs  bd
Inner Join Tbl_Student st On
bd.StuCrs_Stu_UserID = st.Student_UserID
WHERE bd.StuCrs_Stu_UserID = st.Student_UserID
AND st.Student_ISPurged =1
END
0
 
LVL 5

Author Comment

by:Abiel de Groot
ID: 36716108
Many Thanks...

A.
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

734 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