Monday, August 9, 2010
Monday, July 19, 2010
ASP.NET Best Practices
Check out this SlideShare Presentation:
ASP.NET Best Practices
View more presentations from Harish Ranganathan.
Sunday, July 18, 2010
Saturday, July 10, 2010
jQuery Essentials
Check out this SlideShare Presentation:
jQuery Essentials
View more presentations from Marc Grabanski.
Friday, July 2, 2010
Entity Framework v2 Best Practices
Check out this SlideShare Presentation:
Entity Framework v2 Best Practices
View more presentations from andri_yadi.
Monday, June 28, 2010
Sunday, June 27, 2010
Friday, June 25, 2010
Thursday, June 24, 2010
Thursday, June 17, 2010
Trim Querystring from Request.Url
Simpler way to trim Querystring from Request.Url in C#:
Request.Url.GetLeftPart(UriPartial.Path);
Request.Url.GetLeftPart(UriPartial.Path);
Monday, June 14, 2010
Monday, November 23, 2009
Saturday, November 21, 2009
Glimmer
Glimmer - Glimmer allows you to easily create interactive elements on your web pages by harnessing the power of the jQuery library.
Wednesday, October 14, 2009
Friday, August 28, 2009
Friday, March 13, 2009
SQL 2005: (Table) JOIN (Table Valued Function)
In SQL 2005, I had to write a Query in which a TVF(Table Valued Function) should be joined with a Table. The TVF had a Parameter which should be joined to the Table's Column
TVF - MyFunction(@ID)
Table - MyTable (with a Column ID)
Here the MyTable.ID should be joined with the MyFunction(@ID) to produce the results. The normal JOIN will not work in this case. This should be done by using CROSS APPLY feature:
SELECT * FROM MyTable T CROSS APPLY MyFunction(T.ID)
CROSS APPLY = Table INNER JOIN TVF
In case of LEFT JOINing use 'OUTER APPLY' like this:
SSELECT * FROM MyTable T OUTER APPLY MyFunction(T.ID)
OUTER APPLY = Table LEFT OUTER JOIN TVF
Note: No need to USE 'ON' clause
TVF - MyFunction(@ID)
Table - MyTable (with a Column ID)
Here the MyTable.ID should be joined with the MyFunction(@ID) to produce the results. The normal JOIN will not work in this case. This should be done by using CROSS APPLY feature:
SELECT * FROM MyTable T CROSS APPLY MyFunction(T.ID)
CROSS APPLY = Table INNER JOIN TVF
In case of LEFT JOINing use 'OUTER APPLY' like this:
SSELECT * FROM MyTable T OUTER APPLY MyFunction(T.ID)
OUTER APPLY = Table LEFT OUTER JOIN TVF
Note: No need to USE 'ON' clause
Labels:
SQL
Subscribe to:
Posts (Atom)