Skip to content
Advertisement

SQL query related to Joins and count

Please clarify my sql query question.

I have 4 tables in my sql server example as below:

Input to my stored procedure is productId.

I want to fetch All suppliers whose productid is my sqlproc parameter (input) and Count of OrderIds with ordername = ‘orderorange’ —

Advertisement

Answer

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement