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
Port forward to SBS 2008 for RDP
SQL Query - Autonumbering with prefix
' vs " in CONCATENATE
NTLDR missing when istall winxp on CF card
Asp.Net I need help on a HTTP Handler that will stream binary data in order to display an image.
Why do I have trouble using linq on XML with namespaces?
Add multiple products to a database with one submit
Batch or VBScript to add a shortcut to Desktop for certain users
What is hhumbek.sys?
Access shared folder from application on workgroup without asking for username\password.