Viewing 15 posts - 271 through 285 (of 325 total)
All the EXEC statements are commented out. I presume so you can run it, check the SQL it would have executed and then either execute it manually or uncomment the...
July 30, 2018 at 2:40 pm
July 30, 2018 at 1:05 pm
I'd get rid of the union alls entirely, they're defeating the purpose of using Grouping Sets, and just have WHERE ID IN (1,2,3). You may also want the GROUP BY...
July 30, 2018 at 6:29 am
Using row_number() can be problematic if the data can change between each individual request. There are different types of solution, which can all have different pros/cons depending on the precise...
July 29, 2018 at 1:09 pm
DECLARE @myInt float = 5555555;July 29, 2018 at 4:26 am
drop table if exists #temp
create table #temp
(
id int identity(1,1) primary key,
dtVal datetime2 not null,
July 29, 2018 at 4:06 am
July 29, 2018 at 3:45 am
select kd
from
(
select kd from table1
intersect select kd from table2
I believe you can slightly extend that by moving to Azure hosted SQL 2008, but honestly it might be better to plan a migration to a newer SQL Server release
July 27, 2018 at 1:13 pm
July 26, 2018 at 12:18 pm
Indeed. And how you solve the problem if you do care might depend on if you have a single table you need to beck up, or a whole raft of...
July 26, 2018 at 6:48 am
DDL will definitely help people to help you. You might want to investigate the FORMAT function which can probably help you get where you're trying to go, eg:
[code...
July 25, 2018 at 12:34 pm
I guess we'll have to agree to disagree on the mess thing. I...
July 24, 2018 at 9:29 am
July 24, 2018 at 9:07 am
Viewing 15 posts - 271 through 285 (of 325 total)