mprabhuram


Member since 07/14/2009

16 snippets

4014 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

mprabhuram's Recent SnippetsTagged Oracle



« Prev 1 Next »
This SQL would help you to transpose a rows into columns in SQL
0 2556 posted 12 years ago by mprabhuram
You would use a CURSOR FOR Loop when you want to fetch and process every record in a cursor. The CURSOR FOR Loop will terminate when all of the records in the cursor have been fetched.
1 953 posted 14 years ago by mprabhuram
Elapsed Time Calculation
0 900 posted 14 years ago by mprabhuram
GET_HASH_VALUE Function This function computes a hash value for the given string. Syntax DBMS_UTILITY.GET_HASH_VALUE ( name VARCHAR2, base NUMBER, hash_size NUMBER) RETURN NUMBER;
1 1183 posted 14 years ago by mprabhuram
Returns database's version
0 841 posted 14 years ago by mprabhuram
other links : http://tinman.cs.gsu.edu/~raj/880/su98/pldsql/node6.html
1 1002 posted 14 years ago by mprabhuram
In the examples so far we have declared variables as a separate object using one of PL/SQL’s standard datatypes. Normally a PL/SQL variable is closely tied to a database object and uses the same datatype. For example, if the variable will hold the...
1 1046 posted 14 years ago by mprabhuram
Logic to subtract months from a date field and extract year and month
0 1112 posted 14 years ago by mprabhuram
Sequence is used to generate auto incrementing numbers
0 847 posted 14 years ago by mprabhuram
See the DBLinks that you have created in the past
0 1028 posted 15 years ago by mprabhuram
use this to convert the oracle time stamp into a character.
0 1090 posted 15 years ago by mprabhuram
This will take the alpha numeric loan number field and converts it into numeric loan number. If there are any loan numbers with alphabet then it is converted as NULL (basically alpha numeric loan numbers are ignored)
0 979 posted 15 years ago by mprabhuram
Use this logic to avoid double counting in ORACLE SQL
1 1063 posted 15 years ago by mprabhuram
This function can be used to find out if there exists an overlap between two pairs of dates or time. There is an alternate way to calculate the actual overlapping value - Read the snippet "How to avoid double counts"
0 3542 posted 15 years ago by mprabhuram
ROW_NUMBER() - Partition (group by) the expression values and assigns integer values to the rows depending on their order. thx to Shouvik Basu < http://www.orafaq.com/node/55 >
0 945 posted 15 years ago by mprabhuram
« Prev 1 Next »