Viewing 15 posts - 14,251 through 14,265 (of 15,381 total)
Or just remove the subquery as it really isn't needed.
SELECT
ESO_PORT,
sum(case when ONTIME_S = 'On Time' then 1 else 0 end) as Ontime_s,
...
August 16, 2011 at 8:15 am
One of the important elements in deciding on a natural key vs a surrogate key is to determine if the value you pick is going to change. In the first...
August 16, 2011 at 8:09 am
R.P.Rozema (8/16/2011)
Of...
August 16, 2011 at 7:13 am
troe_atl (8/15/2011)
August 16, 2011 at 7:07 am
Theknee (8/15/2011)
I'm Sorry for the mistake with your name šI will tell Him.
Thanks again.
No worries. š Happens all the time. Good luck. š
August 15, 2011 at 2:30 pm
Theknee (8/15/2011)
This is not the way I expect to see the problem to be resolved, But this will work.
I'm not the DB designer for this project, but from...
August 15, 2011 at 2:06 pm
Like the previous poster said, you only have two inserts.
that being said I would start with "what am I doing wrong"? You are managing your own identity type data.
...
August 15, 2011 at 2:01 pm
Are you looking for a way to have sql server pop an input box to capture this email? If so, there is no visual component of SQL server. That would...
August 15, 2011 at 1:46 pm
The ALL operator is interesting. Seems to make this awfully complicated though. Try this.
DECLARE @a int = 102733019,
@b-2 int = 102733019 ,
@c int = 0
select case when
(@a = @b-2 and...
August 15, 2011 at 1:41 pm
I hope you are not using a UniqueIdentifier as your primary key. There are a zillion reasons that is not a great idea. But you can "roll your own" UniqueIdentifier...
August 15, 2011 at 1:30 pm
With the huge amount of variance in the size of the fields you are facing a slow search process no matter how you slice and dice this. At first I...
August 15, 2011 at 1:12 pm
tomperson349 (8/12/2011)
August 12, 2011 at 2:45 pm
This isn't quite 100% but it is very close...just a little tweaking on the substring math and you should be there.
create table #Test
(
Label varchar(101)
)
insert #Test
select 'Lorem ipsum dolor sit amet,...
August 12, 2011 at 2:43 pm
Just a suggestion but you should build you sql in ssms and then move you query to your code. You are fighting too many battles at the same time. Get...
August 12, 2011 at 2:18 pm
You do not need a variable to hold Result1. You do however need to convert your date to a varchar of some type if you are going to put 'N/A'...
August 12, 2011 at 2:17 pm
Viewing 15 posts - 14,251 through 14,265 (of 15,381 total)