Viewing 15 posts - 6,766 through 6,780 (of 10,144 total)
Or like this, depending on your data:
SELECT r1.ProductID,
[total number of units to a pallet] = r1.[qty in units] * r2.[units in a case] * r3.[cases to a pallet]
FROM...
August 15, 2011 at 4:36 am
drew.georgopulos (8/12/2011)
Holy Good Night...that sure is a lot more readable!I am not sure if the distinct is necessary or not.
Thank you for your work
drew
Should be quite a bit faster too,...
August 15, 2011 at 1:56 am
A couple of suggestions.
/* PQI 09 Measure */
-- second query of two in this section.
-- Existing code
update member_aggregate set PQI09N = discharges
from member_aggregate i
inner join (
select member_id, count(distinct...
August 12, 2011 at 4:05 am
drew.georgopulos (8/10/2011)
...the whole thing is dog slow...drew
The whole thing is dog slow because it's coded naively. Here's a suggestion for you. Post each stored procedure separately. This will encourage folks...
August 11, 2011 at 4:48 am
thompson 44810 (8/10/2011)
...What we would like is to create a temp variable from the process that we can pull from...
What are you really trying to do? How about that representative...
August 10, 2011 at 10:12 am
Put the filter into the JOIN otherwise you will turn it into an INNER JOIN as Ninja shows.
SELECT
c.option_Desc,
c.option_ID,
s.row_ID,
s.User_ID
FROM tbl_codes c
LEFT JOIN tbl_Codes_Select s
ON...
August 10, 2011 at 9:58 am
twdavis-893252 (8/10/2011)
August 10, 2011 at 9:50 am
thompson 44810 (8/10/2011)
What I want to do is pull and combine from two different columns in the same database...
August 10, 2011 at 9:37 am
Phil Parkin (8/10/2011)
ChrisM@Work (8/10/2011)
Try adding COUNT(*) OVER(PARTITION BY Residence_Address) to your first query.From this, it sounds like you have managed to understand the initial post. I salute you sir 🙂
Heh...
August 10, 2011 at 9:03 am
Try adding COUNT(*) OVER(PARTITION BY Residence_Address) to your first query.
August 10, 2011 at 8:54 am
skcadavre (8/10/2011)
...Beaten to the punch! Teach me for leaving a window open while doing work, then returning to it without refreshing! 😉
Makes a change from lightning-fast Remi 😉
August 10, 2011 at 8:12 am
DROP TABLE #Sample
CREATE TABLE #Sample (Name VARCHAR(10), A INT, B INT, C INT, d INT, E INT)
INSERT INTO #Sample (Name, A, B, C, d, E)
SELECT 'John', 1, 0, 1, 1,...
August 10, 2011 at 7:25 am
Jeff Moden (8/9/2011)
ChrisM@Work (8/9/2011)
Crackin' good read as always Jeff.
Thanks, Chris. Always good to hear from you.
I never noticed it before. Your signature line says you're a defender of...
August 10, 2011 at 2:06 am
Crackin' good read as always Jeff.
August 9, 2011 at 9:50 am
Mad-Dog (8/9/2011)
...it's not give me the correct results.
LOG_NUMBER '002' needs to be
00205/08/2011
00206/08/2011
00207/08/2011
Apologies. Actually it should appear three times:
SELECT LOG_NUMBER,
MAX_EVENT_TIME =...
August 9, 2011 at 6:39 am
Viewing 15 posts - 6,766 through 6,780 (of 10,144 total)