Viewing 15 posts - 7,486 through 7,500 (of 8,753 total)
Here is some code that does the job, not perfect though and leaves some room for improvements.
๐
USE tempdb;
GO
SET NOCOUNT ON;
/* Staging tables */
create table dbo.tmp_management
(memberid int,
pid int,
firstname varchar(10),
lastname varchar(10),
DOB...
August 17, 2014 at 1:11 am
SQL_Surfer (8/16/2014)
Row delimiter is CRLF
Text Qualifier is "
Issue is some data value inside itself contains " to represent...
August 16, 2014 at 11:05 pm
halifaxdal (8/16/2014)
What I am looking for is a simple query (with no...
August 16, 2014 at 4:24 pm
In the old days (pre 1998) this was simple, only handful of top level domains. Today this is quite complicated and the only way is to maintain a registry of...
August 16, 2014 at 3:46 pm
Koen Verbeeck (8/16/2014)
Luis Cazares (8/14/2014)
Grant Fritchey (8/14/2014)
Evil Kraig F (8/14/2014)
djj (8/14/2014)
ChrisM@Work (8/14/2014)
remember '76/'77
Wish I could remember what last year was like, I remember some nice days for '77 as...
August 16, 2014 at 7:23 am
Evil Kraig F (8/15/2014)
Brandie Tarvin (8/15/2014)
August 15, 2014 at 3:58 pm
Jeff Moden (8/15/2014)
I can't speak for anyone else but I consider MAX to be a form of "aggregation" even when it applies to character based values.
I agree, anything one can...
August 15, 2014 at 3:35 pm
Ed Wagner (8/15/2014)
Jeff Moden (8/15/2014)
GilaMonster (8/15/2014)
Eirikur Eiriksson (8/15/2014)
Koen Verbeeck (8/15/2014)
GilaMonster (8/15/2014)
Eirikur Eiriksson (8/14/2014)
You can try out these methods as previously suggested
However OP said
I really don't like this temp table...
August 15, 2014 at 3:21 pm
Ed Wagner (8/11/2014)
GilaMonster (8/11/2014)
paul.knibbs (8/11/2014)
Jeff Moden (8/9/2014)
With the understanding you have of that counting problem and the additional understanding that I don't ask "trick" questions or questions based on trivia,...
August 15, 2014 at 12:59 pm
Koen Verbeeck (8/15/2014)
GilaMonster (8/15/2014)
Eirikur Eiriksson (8/14/2014)
You can try out these methods as previously suggested
However OP said
I really don't like this temp table creation
So, no row number, no temp tables....
August 15, 2014 at 11:39 am
serviceaellis (8/15/2014)
JeeTee (8/15/2014)
Is this for...
August 15, 2014 at 11:36 am
You can try out these methods as previously suggested, hard to understand why going through all the trouble instead of using ROW_NUMBER!
๐
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @RESSET TABLE
(
...
August 14, 2014 at 11:57 pm
August 14, 2014 at 11:14 pm
serviceaellis (8/14/2014)
Not really understanding the difference?Main thing with what I need is it's not an aggregate
My bad, sorry for the incomplete answer;-)
The complexity of not using an aggregate is...
August 14, 2014 at 10:51 pm
It is of course possible on almost static databases with mostly reads and hardly any inserts/updates, but in general it is unlikely. There may be other reasons where one would...
August 14, 2014 at 10:04 pm
Viewing 15 posts - 7,486 through 7,500 (of 8,753 total)