Viewing 15 posts - 1,246 through 1,260 (of 7,191 total)
September 28, 2017 at 4:40 am
Nader
You need to use recursion to do this. Have a look through that link (or search for others) and post back if anything isn't clear. There should...
September 28, 2017 at 3:57 am
If this information is needed for search or grouping criteria in the database,...
September 27, 2017 at 9:34 am
"In a format we can consume" means we can just run the code and don't have to fiddle about copying and pasting your data on to our screen. It's you...
September 27, 2017 at 2:28 am
In your Calendar table, you need to number your weeks, not the day of the week. So 2017-09-14 (Wednesday) would be week 20 (say), so would 2017-09-15, so would 2017-09-16, and so...
September 25, 2017 at 9:53 am
Build your expression from the bottom up. Does the inner condition ( ISNULL([DC_ManagerCode] )? "FundCode" : "FundCode_ManagerCode_SHC") work? If so, the error must be in the outer condition. I suspect...
September 25, 2017 at 8:21 am
Create a calendar table with a single day in each row, and a column for the week name or number. You can then join to that table and use the...
September 25, 2017 at 8:17 am
https://docs.microsoft.com/en-us/sql/t-sql/data-types/int-bigint-smallint-and-tinyint-transact-sql
John
September 22, 2017 at 1:42 am
This doesn't make sense. Where does the lc alias in your WHERE clause come from?
John
September 22, 2017 at 1:34 am
Yes. The database engine doesn't read in units smaller than a page. So if you want to see something on a data page, the whole page is read into memory....
September 21, 2017 at 8:48 am
Why not keep it in a separate table? If you have it in the same table, you're going to get page splits the first time any row is updated. You...
September 21, 2017 at 8:16 am
char pads with empty space, yes. That's why you should only use it for short (up to 8 to 10 characters, say) or fixed-length data. But no, it would be...
September 21, 2017 at 7:58 am
Not necessarily, no. It depends whether your column is variable width (varchar(n), for example), and if so what values are in the column (whether they take up the whole maximum...
September 21, 2017 at 7:32 am
The wider your column, the fewer rows you#ll fit on a single data page and hence the more pages are likely to need to be read into memory to satisfy...
September 21, 2017 at 5:55 am
Viewing 15 posts - 1,246 through 1,260 (of 7,191 total)