Viewing 15 posts - 16 through 30 (of 789 total)
Sean Lange (5/13/2011)
Something like this?
Update users
Set deleted = '1'
from users u
join UserStatus us on u.username = us.username
where us.status = 'inactive'
Ooops sorry for the same post, I didn't see...
May 13, 2011 at 10:30 am
stan-617410 (5/13/2011)
Users fields: UserID, Username,Deleted (bit)
UserStatus: UserID, Username,Status (active,inactive)
I need to update the "Deleted" field when a user's status is Inactive.
Update users
Set deleted = '1'
Where...
May 13, 2011 at 10:27 am
I'm late here .... Jeff, I can see the brilliant stuff in this great article! -
Come and be a twitter guy (@JeffModen), I would like to see the SQL...
May 4, 2011 at 1:27 pm
I don't know your data type in your table, and one of the options can be:
SELECT CAST(month_value AS NVARCHAR) + '/' + CAST(year_value AS NVARCHAR) AS YOUR_FIELD FROM TRANSACTION
February 15, 2011 at 1:10 am
Good news very professional staff it worth to attend ... I will check my possibility from other continent to come from EU to USA!
January 31, 2011 at 5:48 am
Hey Jeff, I'm late here, but really this is very nice article, thanks for sharing!
Wish you more success my friend,
Dugi
January 28, 2011 at 1:05 pm
One alternative is:
INSERT INTO #TAB1
SELECT T2.SNO, T3.DEPTID, T3.DEPTNAME
FROM #TAB2 T2 INNER JOIN #TAB3 T3 ON T2.DEPTID = T3.DEPTID
December 30, 2010 at 1:27 am
I know that is later but I post the link for the other users at least:
http://www.microsoft.com/en-us/sqlazure/videos.aspx
ChungaLlunga!
:hehe:
December 25, 2010 at 5:05 pm
I don't now the structure of the tables and in what conditions are Foreign keys with Primary keys, I think you should enable ON DELETE CASCADE during the relationship...
December 25, 2010 at 3:35 pm
According to your server details (little details), I can say YES you can install the SQL Server 2008! Before to install you can use the upgrade adviser with SQL Server...
December 25, 2010 at 3:25 pm
Why you are trying to SELECT all the records!?
While you are using the SQL Server 2005 you have possibility to do the partition table ...
December 24, 2010 at 1:58 pm
OCTom (12/23/2010)
Getting help may not mean getting it from a person.It may mean visiting sites such as SSC.The key is to know when to do that.
Then the SSC is the...
December 23, 2010 at 8:35 am
This is the true story where all of us can learn that you cannot know everything, otherwise you will know nothing at all!
So doing SOS to the the people who...
December 23, 2010 at 7:15 am
robertm-772679 (12/23/2010)
December 23, 2010 at 6:57 am
Viewing 15 posts - 16 through 30 (of 789 total)