Advertisement
Guest User

Untitled

a guest
Jul 5th, 2018
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. CREATE PROCEDURE Print_CompanyDetails
  2. -- Add the parameters for the stored procedure here
  3. @DocKey@ int
  4. AS
  5. BEGIN
  6. -- SET NOCOUNT ON added to prevent extra result sets from
  7. -- interfering with SELECT statements.
  8. SET NOCOUNT ON;
  9.  
  10. -- Insert statements for procedure here
  11. select @DocKey@ AS DocEntry, OADM.*, ADM1.*, DSC1.* from OADM INNER JOIN ADM1 ON OADM.Code = ADM1.Code
  12. LEFT JOIN DSC1 ON (OADM.DflBnkCode = DSC1.BankCode AND OADM.BankCountr = DSC1.Country)
  13. END
  14. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement