Viewing 15 posts - 1,216 through 1,230 (of 3,500 total)
October 23, 2018 at 5:52 pm
October 23, 2018 at 2:35 pm
Thanks for the sample data. The only thing missing now is an explanation of what you really want - like a sample result that you're trying to return..??
October 19, 2018 at 11:48 am
October 18, 2018 at 8:43 pm
Please please please don't post pictures of your database. Those are worthless. I can't copy & paste into SSMS and run it. So since I don't have real tables, I'll...
October 18, 2018 at 7:45 pm
Oh fun!
This sounds like it's the end part of some dynamic SQL statement, so you need to track down exactly what query is being built, so you know the...
October 15, 2018 at 2:41 pm
the other option is to OUTER join to your Calendar table.
...
FROM Calendar c LEFT JOIN Sales s
ON c.CalendarDate = s.SaleDate
because that forces a value...
October 12, 2018 at 1:42 pm
September 26, 2018 at 9:07 am
Take this with a grain of salt, because I'm a SQL Server dummy, but I'd probably create a cursor to loop over the tables in your database that you want...
September 25, 2018 at 11:56 pm
SELECT TOP 2 PERCENT :<column list>
FROM ...
September 25, 2018 at 8:18 am
If all you want is the previous value, then why not just use LAG()? For the first value in the PARTITION BY clause, it will be NULL. For all others,...
September 19, 2018 at 1:42 pm
September 19, 2018 at 10:34 am
Did you rebuild the indexes after the shrink? That would do it.
September 17, 2018 at 9:32 pm
Why not just add a sort of phony column for each of the two sets. For the book income, set the value = 1 and for the other set the...
September 17, 2018 at 3:56 pm
Viewing 15 posts - 1,216 through 1,230 (of 3,500 total)