Viewing 15 posts - 46 through 60 (of 110 total)
August 3, 2007 at 3:10 am
I don't think anybody could have guessed what you meant from your original post.
Anyway, the problem is not in SQL.
Your front end progrm should add the surrounding quotes.
August 1, 2007 at 11:52 pm
All partial payments don't have to have previous payments as thier parents.
All of their parents can be the original invoice.
You still should be able to get what you need.
July 29, 2007 at 11:05 pm
INSERT INTO Local_ProgramMaster (Faculty, ProgramTitle, ProgramDate)
SELECT Faculty, ProgramTitle, ProgramDate
FROM ProgramMaster
WHERE (Condition here)
INSERT INTO ProgramScheduleDetail
SELECT
(
SELECT Z.ProgramMasterId
FROM Local_ProgramMaster
WHERE Z.Faculty = (SELECT Y.Faculty FROM ProgramMaster Y WHERE Y.ProgramMasterId = A.ProgramMasterId)
AND Z.ProgramTitle =...
July 24, 2007 at 12:39 am
You can get ProgramMasterId from Faculty + ProgramTitle.
I don't think you need to use cursor.
July 23, 2007 at 11:52 pm
Does Faculty + ProgramTitle make a record unique?
July 23, 2007 at 11:00 pm
and CalculateDistance?
I suspect your trigonometric functions in the above is causing the domain error.
You have to make sure that parameters are within the ranges allowed in functions.
June 27, 2007 at 7:11 pm
Please post how CalculateDistanceByZip is coded.
June 27, 2007 at 6:37 pm
By saying inner ROUND......., I was refering to [3], [15], [16] of the following:
SET @distance = ROUND((ACOS(ROUND(....., 3))) * 6378.135, 3)
SET @distance = ROUND((ACOS(ROUND(....., 15))) * 6378.135, 3)
SET @distance =...
June 26, 2007 at 2:08 am
With
SET @distance =
ROUND((ACOS(ROUND((SIN(@fromLatitude / 57.2958) * SIN(@toLatitude / 57.2958))
+ (COS(@fromLatitude / 57.2958) * COS(@toLatitude / 57.2958) * COS(@toLongitude/57.2958 - @fromLongitude / 57.2958)), [15]))) * 6378.135, 3)
you get 0, but with
SET...
June 26, 2007 at 1:53 am
I think your previous calculation was more accurate.
You can try increasing the digits of the inner ROUND function.
June 26, 2007 at 12:26 am
It is precision/rounding problem.
You can try
SET @distance =
ROUND((ACOS(ROUND((SIN(@fromLatitude / 57.2958) * SIN(@toLatitude / 57.2958))
+ (COS(@fromLatitude / 57.2958) * COS(@toLatitude / 57.2958) * COS(@toLongitude/57.2958 - @fromLongitude / 57.2958)), 3))) * 6378.135,...
June 25, 2007 at 10:42 pm
SELECT ACOS(1.0000000000000002) will raise a domain error.
June 25, 2007 at 9:47 pm
Viewing 15 posts - 46 through 60 (of 110 total)