Lets do some mathematics!!
We need to calculate factorial of numbers (say from 1 to 10). One of the useful queries can be as follows:
SELECT
rownum,
EXP(SUM(LN(rownum)) OVER (ORDER BY ROWNUM)) Factorial
FROM all_objects
WHERE rownum < 10
(Note : This query was given to me by my friend and mentor Mr. Bucchibabu).
I hope it helps in some way or other!!
return code before grep
-
my 2009 solution return code before grep ( ( ( mycmd echo $? >&3 ) |grep
mytext >&4 ) 3>&1 |(read x;exit $x) )4>&1 my 2025 solution mycmd > >(grep
mytext)
1 week ago
No comments:
Post a Comment