Viewing 15 posts - 3,601 through 3,615 (of 8,731 total)
Maybe this will give you a better perspective on how the different types of joins work.
DECLARE @Table1 TABLE( MyID int);
INSERT INTO @Table1 VALUES(1),(2),(3),(4)
DECLARE @Table2 TABLE( MyID int);
INSERT INTO @Table2 VALUES(4),(5),(6),(7)
SELECT...
December 31, 2015 at 11:36 am
You can't create a dynamic pivot like that. You need to use dynamic SQL.
In my case, I prefer to use cross tabs instead of pivots. These is because they...
December 31, 2015 at 9:14 am
Ed Wagner (12/31/2015)
DonlSimpson (12/31/2015)
Grumpy DBA (12/31/2015)
eccentricDBA (12/30/2015)
DonlSimpson (12/30/2015)
Carpe diemYOLO
YODO
Yoda
Qui-Gon
Obi-Wan
December 31, 2015 at 8:36 am
Tallboy (12/30/2015)
Thanks for your prompt reply.
I know your code works as I have tested it out before. I know it creates a cte of dates but would you mind...
December 30, 2015 at 8:17 pm
Are you sure? It seems that there's no mapping happening in the destination. At least that's what the warnings indicate.
Other than that, we'd need more details.
December 30, 2015 at 1:52 pm
The following code should be removed for it to work.
SELECT CONVERT(date,[dates]) AS Dates
FROM DailyDates
OPTION (maxrecursion 0)
),
However, there's a major problem. You have a rCTE that counts which can become...
December 30, 2015 at 12:43 pm
Maybe something like this. Without sample data, I'm not able to test.
UPDATE v
SET
[CLAIM_ID] = Maxformnbr
,[PROV_NBR] = ProviderMerge
...
December 30, 2015 at 10:37 am
I didn't say your SP had an INSERT statement, I was just explaining Bill how the IGNORE_DUP_KEY option worked. As I mentioned, it only works for INSERT and not for...
December 30, 2015 at 10:16 am
SQLBill (12/30/2015)
December 30, 2015 at 10:01 am
You can use a NOT EXISTS, but without DDL and sample data, I won't guess the correct statement you need.
You could also convert this into a MERGE statement if you're...
December 30, 2015 at 9:39 am
SQLisAwE5OmE (12/30/2015)
Jeff Moden (12/29/2015)
SQLisAwE5OmE (12/29/2015)
Jeff, See the attachment for the create view script. Thanks.
Thanks for that. That view is a bit of a "Rosetta Stone" for what the...
December 30, 2015 at 8:02 am
kaza.rohan (12/30/2015)
But for other tables it is possible by using sys.columns and then we can unpivot it.
but sys.databases is...
December 30, 2015 at 7:12 am
And if you get stuck on any subject, this forum is full of experts that can guide you. In fact, the entire SQL Server community is very helpful.
December 29, 2015 at 2:12 pm
Developer edition is a complete enterprise edition (all the features).
Regarding the other questions, I would say it depends. Some people like to do self study to be able to work...
December 29, 2015 at 1:42 pm
It basically adds a value to the Description property of the column. It changes only the metadata of the column for documentation purposes. You could also do it using the...
December 29, 2015 at 1:22 pm
Viewing 15 posts - 3,601 through 3,615 (of 8,731 total)