Viewing 15 posts - 8,101 through 8,115 (of 26,490 total)
Here is what would really help, the DDL (CREATE TABLE statement) for the table(s) involved, sample data (as a series of INSERT INTO statements) for the table(s), and expected resutls...
April 8, 2013 at 9:50 am
Steven Willis (4/5/2013)
Lynn Pettis (4/5/2013)
If you have duplicate dates, this fails. You will want to change RANK() to ROW_NUMBER().
Good catch Lynn. But I don't think just changing to ROW_NUMBER...
April 5, 2013 at 6:33 pm
Steven Willis (4/5/2013)
;WITH sampledata AS
(
SELECT * FROM
(VALUES
(1,'2013-01-01','fred'),
(2,'2013-01-05','ralph'),
(3,'2012-12-31','jane'),
(4,'2012-12-15','suzie')
) DATA (ID,EndDate,Name))
,
cteRank AS
(
...
April 5, 2013 at 3:56 pm
Don't think you can get it without added an addition WHEN clause to the CASE for t2. You are getting a null where c1 = 1 in t1 because...
April 5, 2013 at 3:49 pm
ssc_san (4/5/2013)
There are two records with a value of '1' for column c1, t1 value for those records is null where as t2 has values...
April 5, 2013 at 3:42 pm
ssc_san (4/5/2013)
I am trying to convert a case login to boolean logic, but I could not figure out one part of it.
Here is the DDL and the query I...
April 5, 2013 at 3:31 pm
For the database in question, what is the current recovery model?
April 5, 2013 at 2:58 pm
GilaMonster (4/5/2013)
I...
April 5, 2013 at 2:43 pm
kiran.vaichalkar (4/5/2013)
I've Table People Where there are n no of employees involved.
The salaries of the employee are present in Column 'Salary'
So now, i wanted to count the no of...
April 5, 2013 at 2:42 pm
ScottPletcher (4/5/2013)
GilaMonster (4/5/2013)
Any data modification that is minimally logged has to be written to the data file before the transaction completes
I don't think that's true. If it is, it...
April 5, 2013 at 2:17 pm
The best suggestion I could give is to batch your inserts into the table instead of trying to do it as a single insert. Be sure that you put...
April 5, 2013 at 2:05 pm
Dumb question here, why not just add the description column to the existing table (as a nullable column) and update it there as you get the description(s)? Why maintain...
April 5, 2013 at 1:53 pm
SQLCrazyCertified (4/5/2013)
SQLRNNR (4/4/2013)
SQLCrazyCertified (4/4/2013)
mp5387 (4/4/2013)
Size of my db is growing about 5M every 2...
April 5, 2013 at 1:49 pm
Here is what I really want to say in response to the OPs last post in another thread:
sql-lover (4/5/2013)
GilaMonster (4/5/2013)
sql-lover (4/5/2013)
April 5, 2013 at 1:20 pm
johnnyrmtl (4/5/2013)
What I have is table1 which has been imported externally with 4 fields including an (AccountDescription) field
srvnameAccountAccountDescriptionDATE_CREATION
-----------------------------------------------------------------------------
I need to be able to copy only...
April 5, 2013 at 1:17 pm
Viewing 15 posts - 8,101 through 8,115 (of 26,490 total)