ALTER PROCEDURE [dbo].[test_GetOrders] ( @cust_id int ) AS BEGIN SELECT o.ORD_ID , min(ODD_RequestDate) as min_date, max(ODD_RequestDate) as max_date, count(*) as no_of_items FROM dbo.Orders as o JOIN Orderdetails as c ON c.ODD_ORD_ID = o.ORD_ID WHERE ORD_CUS_ID=@cust_id GROUP By o.ORD_ID end
sridevikavalakuntla wrote:FROM dbo.Orders as o JOIN Orderdetails as c
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)