Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Need to filter and report on COMMENT in general data class

Updated: 22 May 2010 | 4 comments
yusgab's picture
0 0 Votes
Login to vote

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?

Comments

AltAdminNC's picture
15
Apr
2009
0 Votes 0
Login to vote

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...

MagicGuru's picture
02
May
2009
0 Votes 0
Login to vote

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'

XIANRAIN's picture
04
May
2009
1 Vote -1
Login to vote

I strongly agree with

I strongly agree with MagicGuru...

AltAdminNC's picture
04
May
2009
1 Vote +1
Login to vote

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]