Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

select query

$
0
0

Hi,

in the below query

SELECT  Stuff((SELECT  Distinct SSStatus +'\n'  +SSStatusComments+'\n' FROM 
  [EFIWorkStatus1] WHERE  [ST_ID] = a.[ST_ID]  AND  [SSStatus] <> 'Select'  FOR xml path('')),1, 0, '') [SSStatusComments] 
FROM   [EFIWorkStatus1] a  WHERE ST_ID = 8 GROUP  BY  [ST_ID]

result:

Schedule\n8/6/2014 1:17:25 PM&#x0D; test in schedule\n

but  I don't want to display &#x0D;   after PM  in the middle .Please check the query .


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>