Hi,
We are using sql server 2005. Data looks like this:
ID Type Category Code Amount
1 XF+ NETX 600 50
2 XF- NETX 600 60
3 XF+ NETX 607 50
4 XF- NETX 890 98
5 WHD WIRE 799 80
I need to get result excluding the data that are
View Complete Post
I have a property table and an image table.I want this query to return all distinct properties and a thumbnail image. However some properties don't have thumbnail images and they don't get returned by the query. If the imgid is null I still want to return the property. Not sure of how to do this. Thanks ALTER PROCEDURE dbo.procGetPropertiesSelect2ASSELECT tblProperty.PropertyID, tblProperty.SubmitPersonKey, tblProperty.SubmitDate, tblProperty.Active, tblProperty.PropName, tblProperty.StreetAddress1, tblProperty.Storage, tblPropertyImages.ImgIDFROM tblProperty INNER JOIN tblPropertyImages ON tblProperty.PropertyID = tblPropertyImages.PropertyKeyWHERE (tblProperty.PropNa
I have a property table and an image table.I want this query to return all distinct properties and a thumbnail image. However some properties don't have thumbnail images and they don't get returned by the query. If the imgid is null I still want to return the property. Not sure of how to do this. Thanks
ALTER PROCEDURE dbo.procGetPropertiesSelect2ASSELECT tblProperty.PropertyID, tblProperty.SubmitPersonKey, tblProperty.SubmitDate, tblProperty.Active, tblProperty.PropName, tblProperty.StreetAddress1, tblProperty.Storage, tblPropertyImages.ImgIDFROM tblProperty INNER JOIN tblPropertyImages ON tblProperty.PropertyID = tblPropertyImages.PropertyKeyWHERE (tblProperty.PropNa
I know this question has been asked many times. I am just trying to verify that my solution is correct.
I need to concatenate a column values with the rows being ordered on another column.
I initially used the FOR XML PATH clause for the purpose, and it worked wonders, until I had XML entities (&, < etc) in my data, and FOR XML PATH encoded those. After some searching on experts-exchange, I came up with the following code for myself:
SET @freeFieldXml = ''; SELECT @freeFieldXml = @freeFieldXml + '/' + Value FROM @fields ORDER BY CodeType; SET @freeFieldXml = STUFF(@freeFieldXml, 1, 1, '');
I have legacy winforms datagrid , I have to add/replace columns with new values, My new column names and row values are changes as per new requirements , so I am looking to update datagrid form any config file , so in future for any new requirements , If I update my config file , it hast update existing datagrid.
Please suggest me the code; I am trying from 4 days and its urgent now.
Thanks
Satya
I need to list comma seperated values form one to column in multiple rows..ex:
id call_rec
1 508190,737079,1004618,1075562,1272753,1390841,1544201,2591141
2 335395,359380,741049,1113212,2283999,2908851,2001205615
3 1212358,2451853,2795175,2001196872
4 2283999,2451853
I want the call_rec for each bug ID to be listed
ex:
id
Hi
There are many duplicate rows on the Table. where I need to pick the Distinct Values.
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend