Hi All:
I am having problem of Cascading and order by, i need to bind the 2nd parameter to the 1st parameter and i am trying to tidy up the 2nd parameter when it shows up. Therefore i need an order by like the code below, but it is not allowed.
Looking forward to your great answers. Thanks in advance. (also i have updated the screenshot there)
PROCEDURE[dbo].[CascadingPriceHotelNameBrandName]
(
@BName VARCHAR(50))
AS
BEGIN
SET
NOCOUNTON(
SELECT
AName from[dbo].[xxxList]
WHERE
Bname =@BName
Order by .... (THIS IS ACTUALLY NOT ALOOWED)
)
END
- Edited by JohnnyKahWang 7 hours 3 minutes ago