2013-05-30
0 comments
5/30/2013 01:14:00 AM
Ahmed Tarek HasanReusable Code, SQL
Sometimes while writing SQL scripts purposed for fixing production issues you face some unexpected problems. These problems may be due to the existance of discrepancy between client's environments caused by missing some scripts and may be by other reasons.
In these cases you have to make sure that your scripts are somehow adaptable and can be run on all environments without raising errors and without causing any unexpected behaviors. These errors like trying to update a stored procedure which doesn't exist and so on.
The best practice in this...
2013-05-27
0 comments
5/27/2013 10:05:00 PM
Ahmed Tarek HasanReusable Code, SQL
How To Apply Recursive SQL Selections On Hierarchical Data

Sometimes we work on systems where a hierarchical data structure exists on some entities like employees and their managers. Both employees and managers can be called employees but there is a self join relation between them as each employee must have a manager. I think we are all familiar with this pattern.
Also, I think we all faced the situation when we need to get the info about each employee and his/her direct manager. At this point we used...
2013-05-25
0 comments
5/25/2013 04:14:00 AM
Ahmed Tarek HasanSQL
The Difference Between SQL Join Conditions Into "ON" And "WHERE" Clauses

Some of us while writing an SQL select statement with a join between two tables or more may get confused with whether to add a certain condition to the "ON" clause of the join or just add it to the "WHERE" clause as if it is just a filtering condition.
Some people may think that both approaches will return the same results every time. This is not completely true. Yes in some cases both approaches will return the same results but in other cases...
2013-05-24
0 comments
5/24/2013 04:42:00 PM
Ahmed Tarek Hasan.NET, C#, Reusable Code
How To Reconstruct String Sections From Concatenated String Format

Sometimes you find yourself in a need to pass some values from one module to another beside being restricted to using a string format not a fully qualified object. This restriction may be due to performance purposes or some technical restrictions like using a dictionary object which only provides you with a "key" and "value" pairs.
There is more than one way to deal with such situation like using serialization. But, I think that the simplest...
2013-05-08
1 comment
5/08/2013 09:45:00 PM
Ahmed Tarek HasanGeneral, Tips - Hints
How To Sell Your Work And Get Paid?

Everyone of us may have some personal work items like software, tutorials, presentations, articles, videos, graphics,....... Now, instead of just keeping these items in the shades on your drive you can sell these items and get paid for your work every time one of your items is sold.
One of the problems is always to find the right market. So, I found a great market where you can sell your work and get paid. This is what this article about.
Freelancer...
Subscribe to:
Posts (Atom)