Viewing 15 posts - 4,771 through 4,785 (of 10,143 total)
Kumara1011 (4/22/2013)
But when i am using count(*), it showing difference.
i found that in background one command is executing i.e.,
DBCC...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 23, 2013 at 1:39 am
Divya Agrawal (4/22/2013)
ChrisM@Work (4/22/2013)
Divya Agrawal (4/19/2013)
INSERT into @T
select 1,1,'ProgramCompletionStatus - ProgramNotCompleted, '
union all
select 1,1,'InputValidationStatus - Success, IsValidUserID - Yes,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 23, 2013 at 1:21 am
jcrawf02 (4/22/2013)
Brandie Tarvin (4/22/2013)
The SO looks at...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 22, 2013 at 6:57 am
Jeff Moden (4/22/2013)
ChrisM@Work (4/19/2013)
This is an unusual transport file with metadata (partial, column names only) and data as string on the same row.
BWAAAA-HAAA!!!!! I say the same thing everytime...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 22, 2013 at 6:36 am
darren.morgan 32557 (4/22/2013)
Could it be ignoring rows that have a null value for the field you are performing sum on?
-- No
SELECT COUNT(*), SUM(Total)
FROM (
SELECT ID = 1, total = 10...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 22, 2013 at 6:00 am
sravan.here (4/19/2013)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 22, 2013 at 5:27 am
Divya Agrawal (4/19/2013)
INSERT into @T
select 1,1,'ProgramCompletionStatus - ProgramNotCompleted, '
union all
select 1,1,'InputValidationStatus - Success, IsValidUserID - Yes, IsValidProgramID -...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 22, 2013 at 1:25 am
sravan.here (4/19/2013)
I have just provide a simple example here.
But the maximum column names (with csv)...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 19, 2013 at 5:36 am
rodjkidd (4/19/2013)
wolfkillj (4/19/2013)
ChrisM@Work (4/19/2013)
Sean Lange (4/18/2013)
patrickmcginnis59 10839 (4/18/2013)
Time and again I've read in the news folks absolutely ruin their own lives over dumb forum stuff even when posting under what...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 19, 2013 at 5:30 am
surendiran.balasubramanian (4/19/2013)
SELECT CtryId, WrkflwId, Dt
FROM stepHistory H
WHERE EXISTS
(SELECT * FROM
...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 19, 2013 at 3:24 am
Luis Cazares (4/18/2013)
Please take a look at the article linked in my signature to obtain better...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 19, 2013 at 2:55 am
Sean Lange (4/18/2013)
patrickmcginnis59 10839 (4/18/2013)
Time and again I've read in the news folks absolutely ruin their own lives over dumb forum stuff even when posting under what they perceive as...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 19, 2013 at 2:52 am
sravan.here (4/18/2013)
Yes please see the Create table script for source table and the insert script as well
CREATE TABLE yt
([ID] int, [Name] varchar(14), [text] varchar(21))
;
INSERT INTO yt
([ID], [Name], [text])
VALUES
(1, 'SID,DOB', '123,12/01/1990'),
(2,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 19, 2013 at 2:49 am
Stephen Yale (6/18/2008)
.....How do I do it without using a cursor?
.....
Here's one way:
CREATE FUNCTION [dbo].[IF_Calendar]
(
@StartDate DATE,
@EndDate DATE,
@FirstWeekDay VARCHAR(10)
)
RETURNS TABLE WITH SCHEMABINDING AS
RETURN
(
-- inline tally table
WITH E1(N)...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 18, 2013 at 9:43 am
Or this:
SELECT
active_flag = CASE WHEN c.active_flag = 1 THEN 'Active' ELSE 'Inactive' END,
c.name,
c.company_code,
d.active_users,
d.new_users,
d.inactive_users,
test_company_flag,
parent_company_flag
FROM dbo.company c
LEFT JOIN (
SELECT
company_code,
active_users= SUM(CASE WHEN active_flag = 1 AND unregister_flag = 0 THEN 1...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
April 18, 2013 at 6:54 am
Viewing 15 posts - 4,771 through 4,785 (of 10,143 total)