Hi bhavika,
First your T-SQL statement is wrong and your question does not explain exactly what you want to accomplish.
Please elaborate a little more so we can understand your need and provide you with a solution.
QUIGROUP- Need a Certified experienced DBA for a project or troubleshooting? Need help with programming, database recovery, performance tuning, ETL, SSRS or developing new databases? Contact us.. 1-786-273-9809