Solved

Help with sproc syntax (DELETE)

Posted on 2011-09-28
2
337 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

828 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