Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

trying to convert SELECT query to Update query with INNER JOINS

$
0
0

Assalam O Alaikum!

I've tried to convert this query of mine but failed.

I wish to use it for update datasource in data GridView. I'm fetching data with it but converting it to update is not helping giving multiple errors.

I tried to share the pic but they don't let me do so. Its actually a gridView with check boxes. check the item and update it..

Here is the query. Please help me with that.

<pre>

SELECT [rightsId], [saveRights], [updateRights],
[viewRights], [deleteRights], [printRights],
[processRights], [verifyRights], [unProcessRights],
[unVerifyRights], CONVERT(VARCHAR(100),tblGroup.groupId)as groupId, convert(varchar(100),tblmenu.[menuId])as menuid
FROM [tblRights] inner join tblMenu ON
tblMenu.menuId=tblRights.menuId INNER JOIN
tblGroup ON tblGroup.groupId=tblRights.rightsId

</pre>



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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