Profile
Achievement
mprabhuram's Recent Snippets
- All /
« Prev 1 Next »
I wanted a time based gantt chart in excel. Robert's excel template was very useful. The hourly gantt chart was not useful to visualize my needs. I need something with 10 mins precision to analyse patterns in jobs that are running under 15 mins. So t...
0
911
posted 11 years ago by mprabhuram
This SQL would help you to transpose a rows into columns in SQL
0
2285
posted 11 years ago by mprabhuram
This would round down the time stamp to the nearest 5 minute interval based on first interval being 00:00:00.
0
947
posted 11 years ago by mprabhuram
use bulk load to save a large SAS dataset into oracle/DB2/SQL Server/ Teradata for joining with other tables etc..
Alternate link : http://www2.sas.com/proceedings/sugi29/106-29.pdf
0
1075
posted 14 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
754
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
971
posted 14 years ago by mprabhuram
other links :
http://tinman.cs.gsu.edu/~raj/880/su98/pldsql/node6.html
1
813
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
823
posted 14 years ago by mprabhuram
Logic to subtract months from a date field and extract year and month
0
882
posted 14 years ago by mprabhuram
cURL can be used in place of wget
Use this command to download a file into filesystem using terminal.
0
1222
posted 14 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
737
posted 14 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
3238
posted 14 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
736
posted 14 years ago by mprabhuram
This is a sample application to demonstrate how to create and modify remote shared objects in a flex client application
0
767
posted 15 years ago by mprabhuram
This shell script is tested under CentOS / RHEL and Fedora Linux. It should also work under other Linux distributions. If you would like to collect and submit information on your network configuration to your sr. Linux / UNIX admin use this script.
2
1572
posted 15 years ago by mprabhuram