join in sql server

Solutions on MaxInterview for join in sql server by the best coders in the world

showing results for - "join in sql server"
Ahmed
24 Jan 2017
1SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate
2FROM Orders
3INNER JOIN Customers ON Orders.CustomerID=Customers.CustomerID;
Janice
26 Feb 2017
1CREATE PROCEDURE SP_Purechase_Selecte
2
3AS
4
5SELECT
6p.P_Id ,
7p.p_name,
8p.alias_name,
9p.alias_code,
10p.p_name_inlocal_language,
11p.barcode,
12p.buy_price,
13p.sell_price_tak,
14p.sell_price_ko,
15p.qty,
16typeQty.qty_type,
17b.brand_name,
18CA.cat_name ,
19SN.sn_name ,
20
21P.P_Description ,
22p.Barwari_Krin 
23
24 FROM tbl_Purchase p 
25 INNER JOIN tbl_Qty_Type typeQty ON P.qty_type_id=typeQty.id
26 INNER JOIN tbl_Brand b ON p.brand_id=b.brand_id
27 INNER JOIN tbl_Catigory CA ON P.cat_id =CA.cat_id
28 INNER JOIN tbl_Sceintific_Name SN ON p.sn_id= SN.sn_id
29 INNER JOIN tbl_Product_Creation
30 GROUP BY P.P_Id, 
31CA.Cat_Name ,
32P.P_Name ,
33SN .Sn_Name ,
34P.sellPrice ,
35P.buyPrice ,
36P.Barcode , 
37P.Qty ,
38P.P_Description,
39p.Barwari_Krin 
40RETURN