Microsoft
Software
Hardware
Network
Question : sql stored procedure
I need to do the following:
1) Select CompanyID From Companies (table) where username = my passed in username that i pass in.
2)Select * from the following tables
Vendors
Contacts
Contractors
where companyId = ‘returned company from previous query
and BidID = 'something that i will pass into the stored procedure'
CompanyID is in (Vendors, Contacts and Contractors) and BidId is in Vendors
I have asked this question before and it does not seem to be working.
Answer : sql stored procedure
Select v.*, c.*, t.*
from USers n
inner join Vendors v on v.companyid=n.companyid
left join Contractors c on c.companyid=n.companyid
left join contacts t on t.companyid=n.companyid
where n.username = @UserName
and v.BidID = @BidID
Random Solutions
Managed PC Boot Agent has taken over my WIndows XP Pro computer
Cannot get to Bitdefender/ McAfee/Symantec/Microsoft websites
Why isn't my external css background image displayed?
DNS not working and AD users can't login. Any DNS experts out there??
SQL 2005: The query processor ran out of internal resources and could not produce a query plan.
what is the best way to create a web page for a 20 item products to sell
DRopDown Box filter 2nd Selection of DropDown box selection of reluts in DropDown box 2 display filter records on form
problem with string
Oracle hints in test environments
Declaring variables in stored porcedure