Viewing 15 posts - 526 through 540 (of 2,894 total)
I guess your StudentAddress table is a link table between Address and Student tables, right?
If so, when you edit the link you better delete and insert "link" rows if they...
March 19, 2013 at 6:11 pm
sqlfriends (3/19/2013)
Eugene Elutin (3/19/2013)
sqlfriends (3/19/2013)
Also for domain tables shall I just: City,...
March 19, 2013 at 6:02 pm
raym85 (3/19/2013)
March 19, 2013 at 5:54 pm
sqlfriends (3/19/2013)
Also for domain tables shall I just: City, County instead of...
March 19, 2013 at 5:45 pm
Yes it can. Just use CAST function.
March 19, 2013 at 12:52 pm
klineandking (3/19/2013)
Thanks but i want the stored procedure to reture a single column 'GetExtractSiteExtractFileBatchPreviousSuccessInd' with the value, your script would only return the result as the return value
My last post...
March 19, 2013 at 12:21 pm
Lynn Pettis (3/19/2013)
Eugene Elutin (3/19/2013)
Most of OP output results do not match relevant formulas, eg:B/A 3/19/2013= 7/ 2 = 3.5 not 0.285714286!
Try flipping the division: 2/7 = 0.2857142857142857.
Yep, I know,...
March 19, 2013 at 11:54 am
Most of OP output results do not match relevant formulas, eg:
B/A 3/19/2013= 7/ 2 = 3.5 not 0.285714286!
Any way thank's to Lowell for data setup:
declare @MySampleData table (Date datetime, Name...
March 19, 2013 at 11:35 am
Even shorter version:
CREATE PROCEDURE [dbo].[GetExtractSiteExtractFileBatchPreviousSuccessInd]
@BatchStatusCd NVARCHAR(5)
,@ExtractSiteCd NVARCHAR(10)
,@ExtractAsOfDate DATETIME
AS
SELECT MIN(Res) AS ExtractSiteExtractFileBatchPreviousSuccessInd
FROM
(
SELECT 1 AS Res
UNION...
March 19, 2013 at 11:16 am
Ough, I can see now!
You need to learn and use proper terminology!
The stored procedure you have does return an integer value (as I've pointed out in the previous post...
March 19, 2013 at 11:13 am
klineandking (3/19/2013)
i tried it still returns no value
What do you mean it returns no VALUE?
Regardless of what you have in stored proc it always return a value! By...
March 19, 2013 at 11:04 am
kl25 (3/19/2013)
Eugene Elutin (3/19/2013)
Are you sure that OP wants one column with all subjects concatenated?
Agreed. 🙂 My query just presents the results in the format the OP listed at...
March 19, 2013 at 10:41 am
Are you sure that OP wants one column with all subjects concatenated?
If not, then he might want dynamic cross-tab:
SELECT dow.[DAY], s.[Subject], ROW_NUMBER() OVER (PARTITION BY dow.[DAY] ORDER BY...
March 19, 2013 at 10:21 am
jbalbo (3/19/2013)
I am getting a syntax error on the following:
case
DATEPART(mm,APPT_RPT_APPOINTMENT.START_DATETIME)
when 07
then (APPT_RPT_APPOINTMENT.DURATION / 60)
end...
March 19, 2013 at 9:11 am
Viewing 15 posts - 526 through 540 (of 2,894 total)