SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 want to know the quries
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Naresh.Chepuri
Starting Member

1 Posts

Posted - 04/02/2013 :  23:25:07  Show Profile  Reply with Quote
1)i want to know the query never place in the order

customer table Order Table

CustID Custname orderID CustID
1 Naresh 1 1
2 suresh 2 2
3 bharat 3 1

Answer:Select Custid From Customer where custID Not In (Select Custid from order table)

Please confirm the answer correct or not

2)i want to know the query managername,empname

employee table

empid empname managerID
1 Naresh 2
2 suresh 1
3 rakesh 2

3)ssis package:

i have 10 tasks 5 tasks are success and 5 tasks are failed

if the task is success the task will commit . if the task is is failed the tasks will roll back

Ans:-by using transctions is possible.



Thanks and Regards
Naresh Chepuri

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 04/03/2013 :  01:23:56  Show Profile  Reply with Quote
why not test with sample data and see if you're getting correct output?
That way you will understand for yourself whether its correct or what went wrong etc. That will be more beneficial to you that someone else suggesting you.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000