Solved

Help with sproc syntax (DELETE)

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

746 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

10 Experts available now in Live!

Get 1:1 Help Now