Skip to content

Tag: sql

How to Update a column Before Select?

I am setting a stored procedure for select and I want to update the value of one column in the database Before doing the Select. This is what I tried but it’s not working. @roleID int and @query …

How to perform following query in LINQ?

I have a SQL query need to do in LINQ. Can anyone helps in converting? SELECT * FROM profile WHERE ProfileId 1221 AND IsActive = 1 AND ProfileId NOT IN (SELECT ReportingPerson …