Viewing 15 posts - 1,441 through 1,455 (of 2,171 total)
-- Prepare sample data
DECLARE @Sample TABLE (Dept INT, Time INT)
INSERT @Sample
SELECT 8, 907 UNION ALL
SELECT 8,...
August 2, 2007 at 1:11 am
update FSA_EXPORT_TEMP WITH (ROWLOCK, INDEX(<index name here>)
set trading_partner = 'XXX'
where reporting_date = @reporting_date
and fsa_le = @fsa_le
and transfer_le like '%%X'
and sp_id =@sp_id
August 2, 2007 at 12:57 am
ORDER BY
--TopLevel Sort
CASE
WHEN @SortBy = 'SaleDate' THEN convert(varchar(10),TradeDate,102)
WHEN @SortBy = 'AccountName' THEN AccountName
WHEN @SortBy = 'Symbol' THEN Ticker
WHEN @SortBy = 'SecDesc' THEN Description
WHEN @SortBy IS NULL THEN Description
ELSE NULL
END...
August 1, 2007 at 4:09 pm
Median per dept?
Didn't you see the technique I used with row_number() function...?
August 1, 2007 at 4:06 pm
-- Prepare sample data
CREATE TABLE #Movies
(
MovieID INT IDENTITY PRIMARY...
August 1, 2007 at 9:19 am
With the test data posted above, what is the expected result?
August 1, 2007 at 9:15 am
August 1, 2007 at 9:06 am
Start with the code above and go from there and use DYNAMIC SQL to automate this process.
August 1, 2007 at 7:24 am
How are you else going to check that some of the films you are going to show, not already has been shown?
August 1, 2007 at 7:01 am
SELECT CASE WHEN COUNT(DISTINCT Col1) = COUNT(Col1) THEN 'All unique' ELSE 'Some duplicates' END
FROM Table1
August 1, 2007 at 6:59 am
Hmmm..
ISNUMERIC('$1') = 1
ISNUMERIC('1E5') = 1
ISNUMERIC('1D0') = 1
ISNUMERIC('$1.8') = 1
August 1, 2007 at 6:58 am
Ingen fara och lycka till.
Är det något mera så "post sample data and expected output" så det blir lättare för oss att förstå vad du är ute efter.
August 1, 2007 at 4:58 am
Are you talking about PAGING?
You want 10 records at a time (one fo each type) on a "page"?
When you click "next" you want next 10 records (all again of different...
August 1, 2007 at 4:56 am
-- Prepare sample data
DECLARE @Events TABLE (StationID INT, EventDateTime DATETIME, EventTypeID INT, Version INT)
INSERT @Events
July 31, 2007 at 1:35 pm
Viewing 15 posts - 1,441 through 1,455 (of 2,171 total)