![LINQ Skip with example](https://yogeshdotnet.com/wp-content/uploads/c-sharp-tutorial-yogeshdotnet.jpg)
LINQ Skip with example
The Skip query operator will ignore the specified number of input elements from the start of the input sequence and return the remainder. The following code skips over the first three elements and returns the rest: using System; using System.Collections.Generic;...
![user defined sql function in sql server](https://yogeshdotnet.com/wp-content/uploads/sqlserver_tutorial_yogeshdotnet.png)
user defined sql function in sql server
create function ganesha(@id int) returns int as begin declare @work int select @work=avg(salary) from emp_info where id=@id; return @work; end; declare @my int select dbo.ganesha(1) b) alter function myfun(@date datetime) returns varchar(50) as begin declare @myoutput...
![LINQ TakeWhile with example](https://yogeshdotnet.com/wp-content/uploads/c-sharp-tutorial-yogeshdotnet.jpg)
LINQ TakeWhile with example
TakeWhile: This operator is useful when we want to iterate a long list of items. During iteration we can get list of items by using predicate function. Let’s take a example where I will generate numbers using IEnumerable range method and get items as per predicate...
sql joins in sql server
--Self Join select *from emp as p where p.salary=p.gsalary --Equi Join select d.*, e.* from dept as d , emp as e where d.id=e.deptids --Inner Join select d.*, e.* from dept as d inner join emp as e on d.id=e.deptids --Outer Join --Left Outer Join select e.*, d.* from...