Convert a row into a column
SELECT
SUBSTR('GREAT',a,1) GREAT
FROM
(
SELECT
ROWNUM a
FROM
DUAL
CONNECT BY
LEVEL <= LENGTH('GREAT')
);
Output :-
G
R
E
A
T
Labels: Convert a row into a column
SELECT
Labels: Convert a row into a column
Here's an interesting Script :-
Labels: Prepend a Number with 0
The link has tips on how to generate rows urgently :-
I have never used Exponential Functions - I found this in OTN Forums & this was one of the best uses of Exponential functions that I ever found :-
I picked these from the OTN Forums - the queries are surprisingly simple :-
Here's the query :-
How to display the names of Months from JAN to DEC ? This is a beautiful query that I found in Forums :-
I just noticed in a Function in Sybase that returns the name of the current Database user :-
This is a popular interview question that I have been asked ( & I have asked in turn ) from time immemorial.
DROP TABLE AX;
This is an Example of a Pipelined function that returns a Table of Results :-