Hi, I am new to SQL but have been using MS Access for years.
I currently have a problem where a stored procedure that I have created, needs to be filtered further. I know that you can refer to tables and views in a stored procedure, I was wondering if you can access existing stored procedures through a select statement (or alternate means).
Example Situation: If I had a stored procedure "ShowPalletTbl" with a basic select statement say SELECT PalletTbl.* FROM PalletTbl, could I then point to this stored procedure in a second stored procedure and apply additional WHERE GROUP BY etc statements to get the data that I am after. I know that for this example I could use a view or the table directly, but the trouble I currently have is that I need to further GROUP and filter a current stored procedure.
Thanking any replies in advance.
Colin.
I currently have a problem where a stored procedure that I have created, needs to be filtered further. I know that you can refer to tables and views in a stored procedure, I was wondering if you can access existing stored procedures through a select statement (or alternate means).
Example Situation: If I had a stored procedure "ShowPalletTbl" with a basic select statement say SELECT PalletTbl.* FROM PalletTbl, could I then point to this stored procedure in a second stored procedure and apply additional WHERE GROUP BY etc statements to get the data that I am after. I know that for this example I could use a view or the table directly, but the trouble I currently have is that I need to further GROUP and filter a current stored procedure.
Thanking any replies in advance.
Colin.