Viewing 15 posts - 76 through 90 (of 311 total)
Regarding the use of the ^ in the formula, I did not look much further than what I had in the Excel formula.
Instead I concentrated on HOW to organize the...
February 20, 2009 at 10:12 am
And that was just a litteral translation ...
In SQL, G4 does not mean anything as already mentioned.
One much smarter way to go about it would be to use meaningful names...
February 19, 2009 at 2:43 pm
Yup !
Here goes, not fully completed yet
[font="Courier New"]CREATE TABLE Fund
(
EntryName varchar(5) NOT NULL PRIMARY KEY,
Perf_Val decimal(4,2),
Result decimal(4,2)
)
INSERT INTO...
February 19, 2009 at 2:33 pm
This is precisely what I am working on right now.
February 19, 2009 at 2:16 pm
The Excel formula DOES work when fixing this typo
[font="Courier New"](PRODUCT(1+$G4;G$6/100)[/font]
By replacing the semi-colon character with a comma.
[font="Courier New"](PRODUCT(1+$G4,G$6/100)[/font]
Let me look at an SQL solution, I'll get back to you.
February 19, 2009 at 1:44 pm
See more here Difference between predicates in ON clause vs. predicates in WHERE clause
Nice !
By the way, the Original poster still has not provided the table script, data entry script...
February 16, 2009 at 3:26 pm
I meant the effect of a NULL in a WHERE clause, not in the JOIN clause.
Something like
select a.i, a.c, b.i
from a left join b
on a.i = b.i and a.c =...
February 16, 2009 at 11:29 am
Cast the output as CONVERT(VARCHAR(DesiredColumnWidthHere), long_column_name) AS long_column_name.
Interesting.
So I suppose this is more efficient than SUBSTRING ?
Regards
February 16, 2009 at 8:02 am
Mind you, I was talking about the Query Analyzer only.
"Are you Sarah Connor?"
February 13, 2009 at 11:36 am
I agree that for a team, a private jet MIGHT be justified, provided the the plane has the capacity for this. But, typically, this rarely happens.
Having said this, in the...
February 13, 2009 at 11:23 am
You are getting 128 dashes because that column has been declared as having a lenght of 128.
I can only suggest using [font="Courier New"]SUBSTRING(long_column, 1, 30) AS long_column[/font].
I cannot test it...
February 13, 2009 at 10:42 am
If I read your sql statement correctly
[font="Courier New"]
SUBSTRING
....(
........ISNULL(' , ' + a.DDS, '') + ISNULL(' , ' + b.DDS, '')
......+ ISNULL(' , ' + c.DDS, '') + ISNULL(' ,...
February 13, 2009 at 10:33 am
One reason why an INSERT or UPDATE does nothing without reporting an error is a WHERE clause that evaluates as false the conditions under which the staement should apply. It...
February 13, 2009 at 9:41 am
FWIW,
I tend to avoid *= like the plague.
Although more verbose, "LEFT OUTER JOIN" is, in my opinion, much easier to follow when reading a long script.
I would say, if you...
February 13, 2009 at 9:34 am
This, although revolting, is due to the sense of entitlement on the part of administrators and officers of a company.
The car auto executives who paraded in front of a Senate...
February 13, 2009 at 9:24 am
Viewing 15 posts - 76 through 90 (of 311 total)