pl/sql for portfolio profit and loss [message #270760] |
Thu, 27 September 2007 23:52 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
vaidyaji
Messages: 2 Registered: November 2006 Location: Bangalore, India
|
Junior Member |
|
|
I am looking for a pl/sql oracle 9i or 10G for the creating a table and populating that table with the following
1. For each and every sell action, on every stock,
break the buy/ipo/bonus(purchase) quantity or sum the purchase quantities appropriately
and insert into a new table (so as to list,)
2. list the stock wise fields like
buydt(tdate), stock, action, tqty, (tqty*price) + broker_tax as cp,
selldt(tdate), action, tqty, (tqty*price) - broker_tax as sp, sp-cp, buydt - selldt as daysheld
order by yearwise, stock
3. list stocks not sold or balance qty, avg price
attached pl find the sample data
|
|
|
|
|
Re: pl/sql for portfolio profit and loss [message #271339 is a reply to message #270785] |
Mon, 01 October 2007 06:27 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
vaidyaji
Messages: 2 Registered: November 2006 Location: Bangalore, India
|
Junior Member |
|
|
hi experts,
i didn't know that this site is
FOR ORACLE EXPERTS AND BY ORACLE EXPERTS AND OF ORACLE EXPERTS.
i am done writing codes way long back, i always find answers on the net, and for that matter from anything to anything.
i will look elsewhere, and i do not believe in reinventing the wheel, at least not after the internet boom.
|
|
|
|
Re: pl/sql for portfolio profit and loss [message #271348 is a reply to message #271339] |
Mon, 01 October 2007 06:59 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/102589.gif) |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote: | i always find answers on the net,
|
Good! Search on Internet if you get the code you want.
Here, we don't code for you but we are glad to help to code it.
Quote: | i do not believe in reinventing the wheel
|
It is reinvented the wheel, it is just doing homework in this case. You just want solution to them, don't you?
By the way, you always find the answer (or someone doing the job for you) but did you provide any?
Regards
Michel
|
|
|