Viewing 15 posts - 31 through 45 (of 582 total)
It's not clar what you are trying to do. Why do you want to return
Jill, 123, 'test' , 1, 8
Jill, 321, 'these', 1, 8
? What is the logic...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 4:01 pm
The hardcoded student ID is irrelevant. It's only there for simplicity. Obviously the query is not very versatile if that value (both occurrences) isn't replaced with a variable. But it's...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 3:10 pm
If it doesn't matter which 10 you update,
if it...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 3:00 pm
Yes, as I would expect. But the poster says the query I posted (which is like your first one) still doesn't work, i.e. still excludes the unmatched record. If teh...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 2:16 pm
I can only post the same code again:
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 2:07 pm
Do you expect a lot of failed updates? Do you need to do them as a series of individual transactions? If not, why not just do teh updates as a...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 2:06 pm
I agree that that was the problem with the original code:
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 1:55 pm
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 1:39 pm
can you paste the exact code you ran?
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 1:24 pm
The code as it stands should limit results to a single day, using the @date variable. You can get rid of operator by removing it from the SELECT list and...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 11:33 am
It is relevant - because depends what you are using to render reports from the data, what data you need to return. You might be able return smaller parent and child recordsets...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 10:18 am
What result does this give?
where sat.companyID=1370
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 10:05 am
I thought you also wanted a crosstab/pivot table...?
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 9:54 am
on...
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 18, 2006 at 9:19 am
Just out of interest, here's another test which suggests the opposite:
Object_ID('[test_dt]') IS NOT NULL
Tim Wilkinson
"If it doesn't work in practice, you're using the wrong theory"
- Immanuel Kant
July 17, 2006 at 8:12 am
Viewing 15 posts - 31 through 45 (of 582 total)