Viewing 15 posts - 8,041 through 8,055 (of 15,381 total)
Be very careful about using the money datatype. Given your variable names it sounds like you might be doing some calculations? The money datatype is NOT accurate when doing calculations....
June 7, 2013 at 1:32 pm
Here is how you could do the static one.
select CID,
MAX(case when Rank = 1 then ID end) as ID1,
MAX(case when Rank = 1 then Amount end) as Amount1,
MAX(case when...
June 7, 2013 at 1:21 pm
You need a crosstab for this. If you know the max number of columns you can use a static crosstab. If you don't know ahead of time how many there...
June 7, 2013 at 1:14 pm
zoom19 (6/7/2013)
and I am inserting same tablename and columnanme into table .But I have to ,this the...
June 7, 2013 at 1:13 pm
Once I add the primary keys, the insert statements you posted have lots of duplicate key errors.
June 7, 2013 at 12:41 pm
Good job posting ddl and lots of details. However you ddl does not contain any primary keys. Can you post the primary keys?
Also, fwiw you do not need a...
June 7, 2013 at 10:44 am
Rog Saber (6/7/2013)
I know to use the dateadd function but how do I format...
June 7, 2013 at 10:05 am
It is not really possible to map out RI as a hierarchical model as you are discuss. This is because there is nothing that prevents circular references and that sort...
June 7, 2013 at 9:10 am
Hi and welcome to the forums. It is very unclear what you are trying to do here.
In order to help we will need a few things:
1. Sample DDL in...
June 7, 2013 at 9:01 am
DBayliss (6/7/2013)
What would be the best way to dynamically self join a table to create the example contained with the excel spreadsheet?
The number of rules can vary depending on...
June 7, 2013 at 8:28 am
Jeff Moden (6/7/2013)
I just get lucky with being lazy, sometimes. Thanks for the feedback, Sean.
Nobody is consistently that lucky, that indicates a fair amount of skill laying under all...
June 7, 2013 at 8:02 am
How about create table statements and insert statements? If you really need some help you have to put in some of the effort. After all you are getting 100% of...
June 7, 2013 at 7:42 am
ChrisM@Work (6/7/2013)
Sean Lange (6/6/2013)
... In lieu of using a permanent table I use a view that creates the tally table on the fly. 0 reads to access it and I...
June 7, 2013 at 7:40 am
Wow that is super slick Jeff. Don't why none of the rest of us thought about that.
June 7, 2013 at 7:36 am
Thanks for sharing Lowell. This is a great script.
June 7, 2013 at 7:33 am
Viewing 15 posts - 8,041 through 8,055 (of 15,381 total)