Viewing 15 posts - 421 through 435 (of 1,114 total)
Table structure:
CREATE TABLE dbo.mgr_calc
(
sID varchar(15) NOT NULL,
...
October 6, 2008 at 9:23 am
I got struck here.
Output:
1X54321 0
1X54321 0.01714
1X54321 0.1
1X54321 ...
October 6, 2008 at 6:37 am
I am sure you will get best replies from here if you post the table structure with sample data.
October 6, 2008 at 3:24 am
if you have datetime column in your table, then select max(datetime column) from will give you the expected result.
October 6, 2008 at 3:08 am
I dodn't know whether it is a part of solution or not. But simply i tried the above approach.
Inputs are welcome !
October 6, 2008 at 2:32 am
Meantime, i tried the below code.
SELECT sID,isnull(pct_1y_gross,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(one_yr_ann_std_dev,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(one_yr_sharpe_ratio,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(one_yr_up_capture,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(one_yr_down_capture,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(one_yr_downside_dev,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(one_yr_ann_tracking_error,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(pct_3y_gross,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(three_yr_ann_std_dev,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(three_yr_sharpe_ratio,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(three_yr_up_capture,0)
FROM #mgr_calc
UNION
SELECT sID,isnull(three_yr_down_capture,0)
FROM #mgr_calc
UNION
SELECT...
October 6, 2008 at 2:16 am
Concur...
If it comes as an article it would be useful for lot of folks.
October 5, 2008 at 11:50 pm
Any more usages apart from that chris & mine mentioned?
October 3, 2008 at 2:12 am
Chris,
Thanks a lot for your prompt reply with example. It is working fine now.
Can you tell me why you used BIT instead of INT ? Becuase both of them are...
October 1, 2008 at 5:25 am
Test 1:
DECLARE @HasRows INT
SELECT @HasRows = COUNT(*) FROM (SELECT TOP 1 * FROM mf_wk..aac_mf_ob) d
SELECT @HasRows
mf_wk..aac_mf_ob = No of Rows = 9064
SELECT @HasRows = 9064
Test 2:
DECLARE @HasRows BIT
SELECT @HasRows =...
October 1, 2008 at 5:04 am
Thanks Chris for your quick help.
But i got confused.
When i change your code as below
DECLARE @HasRows INT
SELECT @HasRows = COUNT(*) FROM (SELECT TOP 1 * FROM YourTable) d
SELECT @HasRows
Assume...
October 1, 2008 at 4:36 am
rbarryyoung ,
Thanks for pointing the errors.
But i had a discussion with my manager today.He said that the application will be executed via webserver. so we may not sure that has...
September 29, 2008 at 8:18 am
I asked UI team to try the above suggestions.
Meantime i did the below R&D.
--------------------------------------
I have written the below code.
create table bcpt
(
eno int,
ename varchar(255)
)
I have to upload the data from .CSV...
September 29, 2008 at 2:34 am
Viewing 15 posts - 421 through 435 (of 1,114 total)