Viewing 15 posts - 136 through 150 (of 1,923 total)
As far as i know, we dont have any camel-casing utility function in T-SQL.
Here is my stab at it
DECLARE @Table TABLE
(
iD INT
...
May 11, 2012 at 12:12 pm
Will Attribute_Value column contains mutilple words for every single row?
Or is it going to be only one word for all the rows in that column?
May 11, 2012 at 11:48 am
You can read this post to get to know about PARTITION BY and OVER clauses.
May 11, 2012 at 8:49 am
Sony Francis @EY (5/10/2012)
Try this
CREATE TABLE #Account
(
Ac_no int
,Code_list ...
May 10, 2012 at 1:12 am
Sony Francis @EY (5/10/2012)
Suppose i want to insert Account Table with
insert into @Account( Ac_no, Code_list)
...
May 10, 2012 at 1:10 am
With 527 posts and 166 visits, you sure would have known how to post a question. Not good.
Please read this article on how to post your question --> How...
May 9, 2012 at 8:22 pm
It is doable!
Please provide some sample data, table structure, business rules and expected result, like this format:
Sample data & table structure:
IF OBJECT_ID('tempdb..#t') IS NOT NULL
DROP TABLE #t
CREATE TABLE #T
(
...
May 9, 2012 at 12:27 pm
Please provide some sample data, table structure, business rules and expected result, like this format:
Data:
IF OBJECT_ID('tempdb..#t') IS NOT NULL
DROP TABLE #t
CREATE TABLE #T
(
ColA INT
...
May 9, 2012 at 12:20 pm
Try this:
IF OBJECT_ID('tempdb..#t') IS NOT NULL
DROP TABLE #t
CREATE TABLE #T
(
ColA INT
,ColB INT
,ColC INT
)
INSERT INTO #T
...
May 9, 2012 at 12:14 pm
If there is sample data, Create table structure attached with your post - Then YES Of course!
May 8, 2012 at 6:24 pm
Eugene Elutin (5/8/2012)
1. If you group by LastYearQtyActualContainers and ForecastQtyContainers, you cannot SUMLastYearQtyActualContainers - ForecastQtyContainers
One small correction here Eugene, you can SUM the columns used in GROUP BY, but...
May 8, 2012 at 4:16 pm
Try this:
declare @CalendarStartDate datetime
declare @CalendarEndDate datetime
select @CalendarStartDate = '04/03/2006'
select @CalendarEndDate = '12/31/2018'
;WITH NumOfYears ( YrNum , DayCount ) AS
(
SELECT T.N , CASE WHEN T.N % 5 =...
May 8, 2012 at 12:04 pm
I cant think of any way other than putting all those 50 columns in a WHERE clause.
Lets wait for the heavyweights to throw their thoughts on this
May 7, 2012 at 2:00 pm
Viewing 15 posts - 136 through 150 (of 1,923 total)