Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I have viewnames stored in a database table in PL/SQL. I want to get aggregated column values from these views. How can I do it.

For example: I have table Employee which has column viewname. The viewname column has the name of the views. I have to query the views which are stored in the viewname column of Employee table.
Posted
Updated 14-Feb-12 1:16am
v2
Comments
Sergey Alexandrovich Kryukov 14-Feb-12 2:10am    
Please tag "PL/SQL", not just "query".
--SA

1 solution

For aggregration in SQL you can use this

SQL
SELECT AVG(Amount) FROM Expenses



But if your question meant different that this then please clarify more or you can add one example

Hope this helps if yes then accept and vote the answer otherwise revert back with your queries
--Rahul D.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900