Viewing 15 posts - 11,881 through 11,895 (of 15,381 total)
So did my query answer what you needed? You said you had the first two figured out?
May 23, 2012 at 11:17 am
derekr 43208 (5/23/2012)
Sean Lange (5/23/2012)
See if this wiki article will help in your understanding. Not a very in depth look but it may help you get what is going on.
Thanks
I'm...
May 23, 2012 at 11:02 am
komal145 (5/23/2012)
But I need only those records which are in Current_step ="Enrollment_Analsyt"...
May 23, 2012 at 10:59 am
See if this wiki article will help in your understanding. Not a very in depth look but it may help you get what is going on.
May 23, 2012 at 10:55 am
derekr 43208 (5/23/2012)
select
*
from
T1 where exists(select * from sys.databases where name = 'AdventureWorks')
For the above, the sub-query has to be true or...
May 23, 2012 at 10:53 am
I have no idea what the @param has to do with it but the following query will produce the results you stated you need.
select *,
case IsActive when 0 then...
May 23, 2012 at 10:50 am
HUH? We can't see what you see and your explanation left me scratching my head trying to figure out what you are even saying.
May 23, 2012 at 10:43 am
Pretty sure I understand what you are looking for but your sample data doesn't match your desired output.
Take a look at what you stated is desired output.
107 5 Enrollment Analyst...
May 23, 2012 at 10:35 am
sdodia (5/23/2012)
That worked perfectly! Thank you so much for your help!
You're welcome. Thanks for letting me know that worked for you.
May 23, 2012 at 9:45 am
See how this works for you.
Create Trigger [dbo].[TrgInstdofInsert] on dbo.Proxy Instead of insert as
BEGIN
SET NOCOUNT ON
IF Exists (SELECT * FROM inserted WHERE ClientUserName = 'Anonymous') --only update if there...
May 23, 2012 at 9:29 am
For that matter your insert will not insert anything if there is at least 1 row with anonymous. I will see if I can tweak this a bit. Give me...
May 23, 2012 at 9:24 am
I have to agree that your requirements as described are very confusing. In the sample data you posted you don't even have anything < 0. Perhaps if you could post...
May 23, 2012 at 9:18 am
You might also pitch back to whoever came up with this strange requirement that at some point somebody is going to ask about the rows that are explicitly NOT inserted....
May 23, 2012 at 9:06 am
This is really strange requirement but...
Your update to the table does not meet your stated requirements.
I also want to keep track of how many 'anonymous' records it is NOT inserting...
May 23, 2012 at 9:03 am
Sounds like a good candidate for SSIS. The stairway series here is a great start. http://www.sqlservercentral.com/stairway/72494/%5B/url%5D
--EDIT--
Is there an echo in here??? Seems like Andy had the same answer as me...only...
May 23, 2012 at 8:09 am
Viewing 15 posts - 11,881 through 11,895 (of 15,381 total)