Viewing 15 posts - 616 through 630 (of 1,228 total)
No problem - take "c.data_view = 'BASE' " out of the WHERE clause and put it back into the CASE statements.
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 13, 2012 at 3:23 am
Cool, that's good so far. Thanks for posting the results.
You can get rid of the "extra rows" by using a simple aggregate:
SELECT DISTINCT
org_id = a.organization,
org_name = a.name,
TB...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 13, 2012 at 2:19 am
yingchai (1/13/2012)
Removing the WHERE clause does not help. It still throws the same error...
Msg 8152, Level 16, State 14, Line 9
String or binary data would be truncated.
The statement has...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 13, 2012 at 1:27 am
Ooops sorry my mistake - you want to check that [Organization] exists in the Organization_table.
Firstly, can you try this alternative to the existing code? I don't think you need...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 13, 2012 at 1:18 am
yingchai (1/13/2012)
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 13, 2012 at 1:06 am
Since the query above resolves out children from parents, you first have to resolve the parents of the groups you want to pass in:
;WITH
Groups AS (
SELECT GroupId = g.Id,...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 13, 2012 at 12:18 am
Evil Kraig F (1/12/2012)
nick-1043370 (1/12/2012)
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 11:30 pm
sjimmo (1/12/2012)
Peter
What is the contents of the @phonenum variable?
The variable contains a telephone number. In this case, it could be a cell, home or work phone. The reason for the...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 11:18 am
You're welcome.
Can I recommend to you the link in my sig "please read this"? It's quite funny, and it's helpful for new forum members too.
Cheers
ChrisM
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 11:14 am
I think that's the same as this:
Select i.name as Server, fd.path
FROM dbo.Inv_Installed_File_Details fd
JOIN vComputer i ON i.Guid = fd._ResourceGuid
WHERE fd.name = 'ESRDEF.BIN' and Path not like '%BinHub'
AND (
(i.[OS Name]...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 11:06 am
lawson2305 (1/12/2012)
can you be more specific on what you mean? by CASE?I'm researching case now if I find something I will respond regarding this.
Not without a clearer idea of what...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 10:49 am
GSquared (1/12/2012)
Brandie Tarvin (1/12/2012)
GilaMonster (1/12/2012)
Bex (1/12/2012)
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 8:50 am
SQL Kiwi (1/12/2012)
You've missed the point I was making, and have chosen to assume that I am either (a) not aware of the performance issues involved; or (b)...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 7:10 am
Jeff Moden (1/12/2012)
SQL Kiwi (1/11/2012)
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 6:45 am
DeanORenO (1/11/2012)
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 12, 2012 at 6:05 am
Viewing 15 posts - 616 through 630 (of 1,228 total)