Viewing 15 posts - 9,841 through 9,855 (of 10,144 total)
elmerbotha (6/23/2008)
June 23, 2008 at 8:38 am
elmerbotha (6/23/2008)
Hi Jeff,Yes, they have. I am still waiting for an answer from Chris. Hopefully there is a better solution than my temp table approach.
Thanks
Hello
Here's your data prepared as a...
June 23, 2008 at 4:52 am
elmerbotha, can you please provide a larger sample size, say 5 or 10 rows for two metals? Presumably in your actual data you will have several rows like this:
Metal ...
June 20, 2008 at 4:58 am
Yep Rich it's more efficient. The correlated subquery is evaluated once for every row in the publishers table: it's slow and doesn't scale well. If you have a large enough...
June 20, 2008 at 4:48 am
Hello
Something like this is quite efficient:
SELECT p.Publisher, ISNULL(b.BookCount, 0) AS BookCount
FROM Publisher p
LEFT JOIN (
SELECT Publisher, COUNT(*) AS BookCount
FROM Books
GROUP BY Publisher) b
ON b.Publisher = p.Publisher
ORDER...
June 20, 2008 at 4:29 am
smunson (6/11/2008)
June 11, 2008 at 10:02 am
smunson (6/11/2008)
June 11, 2008 at 9:35 am
This works too:
CREATE TABLE #Employees (Emp_No INT, EName VARCHAR(5), Sal INT)
INSERT INTO #Employees (Emp_No, EName, Sal)
SELECT 111, 'AAAA', 9999 UNION ALL
SELECT 222, 'bbbb', 9890 UNION ALL
SELECT 777, 'vvvvv',7879
SELECT TOP 1...
June 11, 2008 at 4:59 am
rbarryyoung (6/3/2008)
Please do not make duplicate posts. It just annoys us and wastes everyones time.
Same topic posted three times. Only 885 more to go.
June 4, 2008 at 6:10 am
Loner (5/6/2008)
Prince Charles, Princess Anne are married twice.
Not at the same time - or to each other!!
May 6, 2008 at 7:42 am
Adam Watson (5/6/2008)
May 6, 2008 at 7:38 am
Hi Adam
Currently you're doing 20 selects into the same table to get your values. You could consolidate this into a single select and make the first part of your code...
May 6, 2008 at 4:32 am
Heh heh no worries Grant, you are of course absolutely right. In practice though, about 7 years of it, the table layout I've shown above was far easier to work...
May 2, 2008 at 2:36 pm
The two fashion systems I've written in the past worked like this:
Column Name
StyleID
ColourID
Size06
Size08
Size10
Size12
.
.
.
Size 24
Unsized
The meaning of the sizing columns is a property of the Style master, so Size06 to Size18...
May 2, 2008 at 9:34 am
Viewing 15 posts - 9,841 through 9,855 (of 10,144 total)