Viewing 15 posts - 7,396 through 7,410 (of 8,753 total)
rajeshjaiswalraj (8/23/2014)
August 23, 2014 at 4:34 pm
Quick question, what edition of SQL Server are you on?
😎
August 23, 2014 at 4:27 pm
You are right, since the aggregation is on the outer/later query, no grouping is needed on the inner one.
😎
August 23, 2014 at 4:22 pm
This is a fundamentally flawed design, including operators in a column, let alone combining operators and values in a single column is seriously wrong. First suggestion is to amend the...
August 23, 2014 at 4:16 pm
Here is a quick attempt, please check the results;-)
😎
DECLARE @IDMainCompany int = 100;
DECLARE @Process_Date datetime = '2014-01-01';
;With SalaryReport as (
Select 1 as IdSalary,100 as IDMainCompany , 1000...
August 23, 2014 at 3:30 pm
Indu-649576 (8/23/2014)
It is not casting to varchar.I need the...
August 23, 2014 at 3:01 pm
Shadab Shah (8/23/2014)
🙂 your example was a good learning , Thanks.
Mr.Eirikur , Do you know some good article which are good to understand Grouped Set, Of Course google is...
August 23, 2014 at 2:39 pm
Shadab Shah (8/23/2014)
I have being trying to help OP with this question with the help of your solution.
I think the grouping in your solution is incorrect.
If we consider the...
August 23, 2014 at 2:08 pm
It can be done but I agree with Lynn, kind of awkward doing this in SQL.
😎
DECLARE @IDMainCompany int = 100;
DECLARE @Process_Date datetime = '2014-01-01';
;With SalaryReport as (
Select...
August 23, 2014 at 11:57 am
Lynn Pettis (8/23/2014)
Really??
Mail every minute and if it goes down then one can tell as the emails will stop:-D
😎
August 23, 2014 at 10:55 am
Sapen (8/22/2014)
I have implemented transactional replication in sql 2012 with replicate schema changes. Now if I drop few indexes and add columns and re add indexes on articles in publisher...
August 23, 2014 at 5:21 am
Here is another suggestion on how to establish the grouping, the rest should be straight forward, select the last desired value from each group.
😎
CREATE TABLE #TEMP (T_ID INT IDENTITY(1,1),UserName varchar(20),Drink...
August 23, 2014 at 5:19 am
er.mayankshukla (8/23/2014)
In one of my projects I observed such a behaviour when I...
August 23, 2014 at 4:35 am
Quick analysis
😎
First a simplified ERD
+--------------+ +--------------+ +-----------------+
|...
August 23, 2014 at 4:29 am
JeeTee (8/22/2014)
August 23, 2014 at 12:03 am
Viewing 15 posts - 7,396 through 7,410 (of 8,753 total)