Viewing 15 posts - 46 through 60 (of 99 total)
That's the ticket, thanks so much 🙂
Can you break down the calculation for me. I need to add a "next week" group and doing this works, so the last number...
August 8, 2018 at 11:01 am
Thanks for the tips.
With Luis' one, that will take the next 7 days. By "this week", I want the calendar week, so when looking at it today, "this...
August 8, 2018 at 9:53 am
It's also the aggregate functions, well COUNT at least. If I strip those out it returns nothing if grouping is true, even with using literal values.
So it seems:
March 1, 2018 at 5:36 am
There is no group called Everyone.
If I strip out some of the query to just this, and add 1=2 in the where clause, it still returns a row:
March 1, 2018 at 3:42 am
What I can't understand is if I change the 2nd select to column names:
From:
select 'EVY', 'Everyone', cast(0 as bit), 2,
...
To:
select e.EMP_Forename, e.EMP_Surname, cast(0...
March 1, 2018 at 1:44 am
March 1, 2018 at 1:35 am
The data returned is presented in a web app. I want to return a lit of departments that are bound to a .NET repeater control, which itself has a nested...
February 28, 2018 at 10:13 am
February 13, 2018 at 4:47 am
select DEP_Code, DEP_Name, cast(0 as bit) Favourite,
case
when...
February 13, 2018 at 4:45 am
PS: I'm doing 2 union all and the FROM statements are almost the same in each, as is some of the WHERE statement.
February 12, 2018 at 7:36 am
I've totally binned this idea. I've instead fabricated an additional column which is bit (true if favourite, false if not).
February 12, 2018 at 7:28 am
Can this be improved?
June 22, 2017 at 2:22 am
Thanks for the replies guys. I think I'm there:
Direct link: https://www.sqlservercentral/Forums/Uploads/Images/1766297-1.png
March 3, 2016 at 6:16 am
Yeah that's what I'm doing.
Direct link: http://i.imgur.com/gczrdrb.png
March 3, 2016 at 2:39 am
Viewing 15 posts - 46 through 60 (of 99 total)