Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails
Create FUNCTION dbo.fnHasOrders ( -- the parameters for the function here @CustomerID int ) RETURNS varchar(20) AS BEGIN declare @response varchar (20) Select @response = iif(isnull(o.OrderID,0)=0,'','<-- has orders') From tblCustomers c left join tblOrders o on o.CustomerID = c.CustomerID Where c.CustomerID=@CustomerID -- Return the result of the function RETURN @response End
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
17 Experts available now in Live!