.... and if you have more than one level of inheritance branching below
MyParentClass, then you could either check for a specific "leaf" with:
SELECT whatever, x__classname FROM MyParentClass
WHERE x__classname LIKE '%~MyChildClass~'
.... or for a specific "branch":
SELECT whatever, x__classname FROM MyParentClass
WHERE x__classname LIKE '%~MyChildClass~%'
But for this purpose it would be much easier to do it the usual way:
SELECT whatever FROM MyChildClass
since, IMHO, there is no benefit of querying like you suggest, Sukesh.
But let me give you an example of what could be done in an elegant way
with x_classname:
With just a single query, like :
SELECT whatever, x__classname FROM MyParentClass
WHERE whatevercriteria
.... we could iterate over the resulting record-set in order to display
each row and use the x__classname value in order to decide what kind of
icon to display with each row, so that the user can easily *see* what
kind of query-hit each row is. This may be interesting in situations
where a property defined in a parent-class may be interpreted in a
slightly different way, depending on what kind of child class it is. An
example of such a property could be a human-readable ID-value with
different nomenclature depending on the actual class of the instance.
Again: this is just interesting on clients whose only binding-choice is
ODBC. It would be of course much powerfull to use the ActiveX, C++,
etc... binding in order to access the info in the %Dictionary.
Axel.