Viewing 15 posts - 1,366 through 1,380 (of 3,481 total)
Could you post a CREATE TABLE script and an INSERT script to populate it?
I think you can use Jeff Moden's DelimitedSplit8K function to break the individual attributes...
January 30, 2018 at 9:38 pm
I think this is close... back up your table or wrap this in a transaction and roll it back when testing.. The INTERSECT returns the DuplicatingValue where there is at...
January 30, 2018 at 8:31 pm
Could you post the CREATE TABLE script for the expected result?
It seems that you could do this using a combination of the windowing function LAG() and STUFF() to concatenate...
January 29, 2018 at 4:37 pm
DelimitedSplit8K is your friend.
Happy reading. Happy learning.
January 23, 2018 at 10:24 pm
Something like this:CREATE TABLE Insurance (
RecordNo INT IDENTITY,
PolicyNo INT NOT NULL);
GO
INSERT INTO Insurance (PolicyNo)
VALUES (34564),(67548),(34564),(98271),(90198),(98271);
CTE to identify and delete...
January 20, 2018 at 2:09 pm
Oh, FFS, Got Google?
https://www.databasejournal.com/features/mssql/managing-sql-server-services-with-powershell.html
should give you a pretty good idea.
January 14, 2018 at 7:55 pm
Then use OUTER APPLY instead of CROSS APPLY.
January 12, 2018 at 8:55 am
January 11, 2018 at 7:45 pm
why what works? The ROW_NUMBER() OVER (PARTITION...) part?
PARTITION OVER is super simple - it's analogous to grouping in a totals/aggregate query, but you still get the individual records, which...
January 9, 2018 at 4:14 pm
I find it hard to believe you've been coding this long (and asking questions) and can't write a simple correlated subquery.
Say I want to show all the details...
January 7, 2018 at 9:21 pm
You could use
WHERE EXISTS and correlated subqueries. It will slow things down, but right answers are better than fast answers.
Do you inherit these stored procedures or...
January 7, 2018 at 11:59 am
I have a column, Column3, that has the expression =iif(Fields!ARR.Value=1, Fields!COLL.Value,0). Is it possible to sum this expression...
January 5, 2018 at 5:43 pm
Thanks Sue. I'll have a look.
I may not have been thinking... probably the really simple answer is "Mark the optional parameters as optional!" Yeah, "here's my sign!" =)
January 5, 2018 at 5:35 pm
Could you explain what this does? (Is this Oracle?)SELECT
@Od = :a2,
@Do = :a3,
@TipSobe = :a1,
@KodaCenika = :a4;
January 2, 2018 at 8:46 pm
It's probably not a syntax issue. It's a permissions issue. If it were a syntax issue, the code would stop and you'd get an error message that the T-SQL "statement...
January 1, 2018 at 11:28 am
Viewing 15 posts - 1,366 through 1,380 (of 3,481 total)