Viewing 15 posts - 166 through 180 (of 2,006 total)
ramos.ferdinand (10/16/2013)
I'm trying to create an hierarchy using tsql. Below is a sample data:
Column 1 Column2 ...
October 16, 2013 at 4:09 am
Bit difficult to see exactly what you want to do, so I'm going to take a stab in the dark.
First, it's always a good idea to set up readily consumable...
October 16, 2013 at 2:36 am
emdavies82 (10/15/2013)
October 15, 2013 at 9:32 am
Learner1 (10/15/2013)
but If I had to add CTE and temp table I could have done this ,Can you suggest any simple way to just add a third...
October 15, 2013 at 9:20 am
October 15, 2013 at 8:28 am
IF @Division = 'All'
BEGIN;
SELECT DISTINCT C.COMPANY_SK, C.COMPANY_DESC
FROM DIVISIONMAPPING D
INNER JOIN VW_DIM_COMPANY C ON C.COMPANYID = D.COMPANYID
...
October 15, 2013 at 7:53 am
abhas (10/15/2013)
But i need to display data for prev 5 months, current month and next 6 months. along with year.for example for example, current month is Oct, then I...
October 15, 2013 at 2:26 am
easy_goer (10/14/2013)
2689222701Extra18106
2689322701Extra28106
with...
October 14, 2013 at 9:14 am
Thanks for the sample data Dwain.
Another option: -
SELECT *
FROM @T
EXCEPT
SELECT TOP 2 *
FROM @T
ORDER BY Column1;
In SQL Server 2012, you could use the OFFSET command, which I think is like...
October 14, 2013 at 2:20 am
dwain.c (10/13/2013)
SELECT...
October 14, 2013 at 2:09 am
I know it is irrelevant, as you're not going to be doing this over a lot of rows of data but in the interest of completeness, here's a performance comparison...
October 11, 2013 at 9:01 am
lsalih (10/11/2013)
Hi -What is a best way to set a field value to today date and time would be a always set to 4:00:00? Please advice
Loads of ways. What have...
October 11, 2013 at 8:48 am
Junglee_George (10/10/2013)
; with BaseProjects (
materialItemCode,
hazardCode)
as (
select
Mi.materialItemCode,
CAST(H.hazardCode as NVARCHAR(1000)) as hazardCode
...
October 10, 2013 at 6:35 am
This is to do with how a query is executed. I'll try and explain but I've never tried to put this into words so forgive me if it's odd.
Logically,...
October 10, 2013 at 4:41 am
-- CREATE SOME SAMPLE DATA TO USE TO TEST THE SOLUTION
IF object_id('tempdb..#temp') IS NOT NULL
BEGIN;
DROP TABLE #temp;
END;
SELECT ID, VAL
INTO #temp
FROM (VALUES(1,'ABC DEF GHI JKL'),
...
October 10, 2013 at 3:02 am
Viewing 15 posts - 166 through 180 (of 2,006 total)