Need to filter and report on COMMENT in general data class
Updated: 22 May 2010 | 4 comments
Field techs are placing location specifics and other meaningful info in the COMMENT field in EDIT resource. Is there anyway to scan and filter this entry field?
Discussion Filed Under:
Comments
Filter Comment
Try building your query/report to select the Comment field from the dbo.InvHist_Comment table.
For example:
Select HIS.[Comment]
from VAsset VA
left outer join dbo.InvHist_Comment HIS on HIS.[_ResourceGUID] = va.[_Resourceguid]
where HIS.[Comment] like 'specific word'
Hope this helps...
Why query the history data
Why query the history data while all he wants is the current value?
I would use:
Select HIS.[Comment]
from VAsset VA
left outer join dbo.Inv_Comment cmt on cmt.[_ResourceGUID] = va.[_Resourceguid]
where cmt.[Comment] like 'specific word'
I strongly agree with
I strongly agree with MagicGuru...
Whatever Works
I didn't see anything about only wanting the "current value" in yusab's request, so I grabbed the table name from a report that was showing all Comments just to to use as an example.
If using the dbo.Inv_Comment works better, cool. Only thing is, the example above won't work without changing the select statement to Select CMT.[Comment]
Would you like to reply?
Login or Register to post your comment.