Posts

Showing posts from May, 2011

Hierarchical Query – Oracle 10g & SQL Server

The issue is simple. You want a migration of your database from Oracle to SQL Server. Hierarchical queries with parent child relationship inside the same table can be a pretty interesting area. In SQL Server 2000, we do not have any straightaway method to do so (unlike in Oracle 10g), along with customized output, but the pain is reduced in higher versions of SQL Server (SQL Server 2005 & 2008). Let us look at the basics quiet SIMPLY . Oracle 10g I will create the FAMILY table to explain this. However, there is a couple of assumption. a)       The data in the FAMILY table does not belong to a person having fallen in love multiple times , resulting in multiple marriages, further resulting in multiple families . So, Sukhendu’s father and Rajkumar’s father is not the same person. b)       Here null as parent_id means simply I am using it for this example. Definitely the Greater Grand Father also had his father. However, be informed that Oracle can take care of a pe