I have a SQL Server 2008 R2 database. This database has two tables called Pictures and PictureUse.
Picture table has the following columns:
Id (int)
PictureName (nvarchar(max))
CreateDate (datetime )
PictureUse table has the following columns :
Id (int)
Pictureid (int)
CreateDate (datetime )
I need to create a computed column in the Picture
table which tells me that how many times this picture has been clicked.any help ?