I am using a inline SQL query in VB which i want to convert to a view in oracle. But the problem is the view also contains search criteria using the where clause and also the group by clause.
Since it's a pretty long query, I would like to implement it as a VIEW in oracle and just call the view in VB. How do i append the WHERE clause to the VIEW in VB with the group by also there?
eg IF the view says " Create or replace view EMP_SAL(employees,department,salary) as select employees, department, salary group by department, salary" In VB, I say, select * from SAL_EMP. Now How do I append the where clause in between the query and group by?
Please shed some light asap.
