Tag: Oracle

Community

Dynamic time sequence query

By Dusan Djuric – Suppose you need to see a full (10 minutes, half-hour, one hour, etc) time map for a given date with user_objects changes counter. And you need to do this in one SELECT statement, with no additional tables, views, packages, procedures, or functions. Is it possible? Yes, it is! Here

Community

Selective Joining of Tables

by Navin Kumar – Assume there are three tables of interest: T1, T2 and T3. Depending on the value of a local variable VAR, you want to join two tables out of the three. The requirement is: If value of VAR is ‘X’ then join T1 and T2; otherwise, join T1 and T3. The value of VAR is determined at […]