vivek1234 Posted May 29, 2017 Report Posted May 29, 2017 how to execute dynamic sql in cte... Koncham sample code pampinchandi please.... Below sql is working for regular sql, but i have dynamic sql, please let me know how to replace the below sql with dynamic sql. With CTE AS (select id, date from table 1, table 2,....) (select min(date), id from CTE group by id) Quote
vivek1234 Posted May 29, 2017 Author Report Posted May 29, 2017 Sql experts evaru leda db lo ... Quote
BillMarkSteve Posted May 30, 2017 Report Posted May 30, 2017 9 hours ago, vivek1234 said: how to execute dynamic sql in cte... Koncham sample code pampinchandi please.... Below sql is working for regular sql, but i have dynamic sql, please let me know how to replace the below sql with dynamic sql. With CTE AS (select id, date from table 1, table 2,....) (select min(date), id from CTE group by id) Select * from cte Ani execute chesi chudu Quote
BillMarkSteve Posted May 30, 2017 Report Posted May 30, 2017 With CTE AS (select id, date from table 1, table 2,....) (select min(date), id from CTE group by id) Lekapothe...ee code tho view create chesi... Select * from dbo.view Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.