Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #37.0K
~6K People Reached
Favorite Forums
Favorite Tags

4 Posted Topics

Member Avatar for RvSon
Member Avatar for hatebin

Hence answers given above fulfill the requirement only advancement in code. Try the following generic procedure pass Product Code as a parameter, also handling the exception if product_id not found in table [CODE=ORACLE] CREATE OR REPLACE PROCEDURE change_price(vProduc_id number) IS product_price NUMBER; new_price number; BEGIN SELECT price INTO product_price FROM …

Member Avatar for hatebin
0
721
Member Avatar for rlaknar

I have a table in which each users can enter more than one records. My task was to find out the last amount entered by each user, i used the following query by using analytical function. you can also use it for the whole table. I have partitioned it userwise …

Member Avatar for arshadshabbir
1
5K
Member Avatar for divyakprabh

Try following Query using Analytical function....... [CODE]select employeeid,TransactionAmount,max_date from ( select EmployeeID, TransactionAmount,TransactionDate, max(TransactionDate) over (partition by employeeid order by employeeid) max_date from employee ) where TransactionDate = max_date order by employeeid;[/CODE]

Member Avatar for arshadshabbir
0
419

The End.