Viewing 15 posts - 8,836 through 8,850 (of 10,143 total)
CrazyMan (2/3/2009)
It works, it returns all rows with date (2nd) despite of what ever month...
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
February 3, 2009 at 8:52 am
Test with some extra data, CrazyMan. It doesn't work.
Insert into #Month Values('2008-12-30 23:48:56.024')
Insert into #Month Values('2008-12-31 23:48:56.024')
Insert into #Month Values('2009-01-01 23:48:56.024')
Insert into #Month Values('2009-01-02 23:48:56.024')
Insert into #Month Values('2009-01-03 23:58:53.024')
Insert into...
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
February 3, 2009 at 8:30 am
CrazyMan (2/3/2009)
Thanks, i need all records that more than a months old despite of year,...
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
February 3, 2009 at 7:56 am
There's another possible angle here. Where is the code running from? Is it a query placed in a command object in Crystal or from a stored procedure? How many rows...
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
February 3, 2009 at 6:01 am
You can use min on varchar. Hopwever, it might not give the same result as you were originally getting. This is closer, using correlated subqueries:
SELECT d.*
INTO #feedrecord
FROM (
SELECT f.*,
VENDORNUM =...
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
February 3, 2009 at 4:31 am
sar_kan25 (2/2/2009)
Hello guy'sI think you havent got my problem.......
I m providing an example
...snip...
please help
Aha!
Exactly as you would find on an order or an invoice?
Can you please set up some...
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
February 3, 2009 at 2:41 am
vikas.saxena (2/3/2009)
one more thing chris.......snip..
the code above will fetch all the records into feedtable or i need to apply something else for it.
The purpose of this statement is to pull...
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
February 3, 2009 at 2:36 am
nikhil.verma (2/2/2009)
Thanks a lot for ur help Chris !!!1One error i am getting with your code :
Invalid column name 'error_code'.
I'm sorry I can't go any further with this -...
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
February 3, 2009 at 2:33 am
Philip Horan (1/31/2009)
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
February 2, 2009 at 8:09 am
GilaMonster (2/2/2009)
Chris Morris (2/2/2009)
Gail - nice weapon! Horrible haircut:P
I'll change the avatar back in a few days. That's the second comment about the haircut.
Funny thing is, it's not far different...
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
February 2, 2009 at 7:55 am
Resolving the tables out of the views results in this:
SELECT it.error_code, COUNT(*) as occurances,
SUM(d.qty_tested) AS qty_tested,
SUM(d.qty_failed) AS qty_failed
FROM [assembly] as a
INNER JOIN tester_configuration as tc ON...
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
February 2, 2009 at 7:45 am
GilaMonster (2/2/2009)
One question - if all 5 of the carrier names are blank, do you want 5 records in the...
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
February 2, 2009 at 6:51 am
You're welcome.
This isn't a complicated process and there's certainly no need for a cursor. Processing the feed table row by row,
with up to six individual inserts per row, is...
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
February 2, 2009 at 6:50 am
Exactly as you would find on an order or an invoice?
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
February 2, 2009 at 5:44 am
Thanks...also the view limit_set_view please.
Views of views can be performance hogs. Others have pointed out the correlated subqueries - they may not be much of a problem however combining the...
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
February 2, 2009 at 5:39 am
Viewing 15 posts - 8,836 through 8,850 (of 10,143 total)