Viewing 15 posts - 13,576 through 13,590 (of 15,381 total)
Why did those suggestions not work? What values do you want in the second table? You have to give us a little information about what you want so we have...
November 4, 2011 at 12:55 pm
Here is the query using Jeff's splitter.
declare @Stores varchar(2000)
set @Stores = '325,785,5698'
--create test data
;with Stores(StoreID, StoreName)
as (
select 1, 'some store' union all
select 325, 'Should be found' union all
select 785, 'also...
November 4, 2011 at 12:45 pm
Cadavre (11/4/2011)
whole (11/4/2011)
which gets values like 325,785,5698 as inputs..
now i need to query it against...
November 4, 2011 at 12:38 pm
John Michael Robertson (11/4/2011)
November 4, 2011 at 12:37 pm
One big advantage of a const table (I have always called mine control) is that you can very easily get the values out of this table (assuming there are not...
November 4, 2011 at 12:33 pm
90 seconds is an awful long time for a single query. That is a very clear indication that your execution plan is scanning over and over. As a short term...
November 4, 2011 at 8:29 am
WOW I can see why that times out. Are you familiar with SARGability? You should google "sql server sargable" and spend some time researching that topic. You have so much...
November 4, 2011 at 7:39 am
GSquared (11/3/2011)
November 3, 2011 at 2:42 pm
Well if you only want to show records for "SomeGuy" then you already had that. It will only show records for "SomeGuy".
November 3, 2011 at 1:31 pm
Then as suggested you need to add your additional filter to the join condition. Otherwise it will only return those rows where there is a match.
November 3, 2011 at 1:02 pm
allan.madriaga (11/3/2011)
So here's a question: When I add an extra WHERE clause in my query, the result set excludes rows with NULLS. Why does that happen and how do...
November 3, 2011 at 11:51 am
Can you more clearly explain what you are trying to do?
November 3, 2011 at 7:38 am
Create a front end for them. Then have somebody either give you permission or write a stored proc to get the data you want.
Allowing users direct access to sql is...
November 3, 2011 at 7:29 am
drew.allen (11/2/2011)
Sean Lange (11/2/2011)
However, just in the skeleton you posted you can increase performance AND accuracy to at least some...
November 2, 2011 at 1:37 pm
Just need a case statement like this.
;with MyTable (BadColumn)
as (
SELECT 'LN1, FN1' UNION ALL
select 'Lastname2, Firstname2' UNION ALL
select 'Lastnm3, Fname3' UNION ALL
select 'Lastname444, Firstname444' UNION ALL
select 'noname' UNION ALL
select 'noname'...
November 2, 2011 at 11:34 am
Viewing 15 posts - 13,576 through 13,590 (of 15,381 total)