Click here to Skip to main content
15,888,124 members
Home / Discussions / Database
   

Database

 
GeneralRe: Should i use SqlConnection or SqlDataAdapter Only ? Pin
kakarato5-Apr-05 15:33
kakarato5-Apr-05 15:33 
Questioncan we set foreign key from another database Pin
BSRK4-Apr-05 19:08
BSRK4-Apr-05 19:08 
AnswerRe: can we set foreign key from another database Pin
Nazmul Hassan5-Apr-05 5:02
Nazmul Hassan5-Apr-05 5:02 
GeneralDataAdapter.Fill Pin
Drew Stainton4-Apr-05 18:19
Drew Stainton4-Apr-05 18:19 
GeneralRe: DataAdapter.Fill Pin
Albert Pascual5-Apr-05 5:53
sitebuilderAlbert Pascual5-Apr-05 5:53 
QuestionCan multiple ds's be in a array? Pin
DEWright_CA4-Apr-05 11:52
DEWright_CA4-Apr-05 11:52 
QuestionCan we set foreign key from another database Pin
Anonymous4-Apr-05 2:38
Anonymous4-Apr-05 2:38 
GeneralUrgent Pin
kalikoi4-Apr-05 0:46
kalikoi4-Apr-05 0:46 
hi
I have got a table as follows

col1 col2
---- -------
1 1183.74
2 1188.05
3 1202.08
4 1211.92
5 1213.55
6 1213.45
7 1213.54
8 1204.92
9 1210.13
10 1209.57
11 1205.45
12 1194.65
13 1194.22
14 1203.21
15 1205.72
16 1203.38
17 1198.68
18 1188
19 1189.24
20 1182.81
21 1177.07
22 1190.25
23 1191.17



now i want a query which yields the following results
here col3 for record 1 is calculated as follows

(1188.08/1183.74)-1)*100=0.364100225


col1 col2 col3
---- ---- ----------------
1 1183.74 0.364100225
2 1188.05 1.180926729
3 1202.08 0.818581126
4 1211.92 0.134497327
5 1213.55 -0.008240287
6 1213.45 0.007416869
7 1213.54 -0.710318572
8 1204.92 0.432393852
9 1210.13 -0.04627602
10 1209.57 -0.340616913
11 1205.45 -0.89593098
12 1194.65 -0.035993806
13 1194.22 0.752792618
14 1203.21 0.208608639
15 1205.72 -0.19407491
16 1203.38 -0.390566571
17 1198.68 -0.890980078
18 1188 0.104377104
19 1189.24 -0.540681444
20 1182.81 -0.485285042
21 1177.07 1.119729498
22 1190.25 0.077294686
23 1191.17 Confused | :confused:
GeneralRe: Urgent Pin
WoutL4-Apr-05 0:54
WoutL4-Apr-05 0:54 
Generalconnecting database over internet Pin
Member 4472173-Apr-05 21:02
Member 4472173-Apr-05 21:02 
GeneralRe: connecting database over internet Pin
Colin Angus Mackay3-Apr-05 23:30
Colin Angus Mackay3-Apr-05 23:30 
GeneralMultiple columns Pin
Jaydeanster1-Apr-05 8:00
Jaydeanster1-Apr-05 8:00 
GeneralRe: Multiple columns Pin
Colin Angus Mackay1-Apr-05 8:17
Colin Angus Mackay1-Apr-05 8:17 
GeneralRe: Multiple columns Pin
Jaydeanster1-Apr-05 8:39
Jaydeanster1-Apr-05 8:39 
GeneralRe: Multiple columns Pin
Colin Angus Mackay1-Apr-05 10:06
Colin Angus Mackay1-Apr-05 10:06 
GeneralWriting data to a dataset Pin
Delo1-Apr-05 7:27
Delo1-Apr-05 7:27 
GeneralRe: Writing data to a dataset Pin
numbrel5-Apr-05 11:01
numbrel5-Apr-05 11:01 
GeneralSelect statments problems Pin
Member 17338781-Apr-05 0:09
Member 17338781-Apr-05 0:09 
GeneralRe: Select statments problems Pin
Colin Angus Mackay1-Apr-05 0:22
Colin Angus Mackay1-Apr-05 0:22 
GeneralRe: Select statments problems Pin
Michael Potter1-Apr-05 4:34
Michael Potter1-Apr-05 4:34 
GeneralRe: Select statments problems Pin
Yulianto.1-Apr-05 17:17
Yulianto.1-Apr-05 17:17 
QuestionAm I missing a header file? Pin
IlanTal31-Mar-05 23:31
IlanTal31-Mar-05 23:31 
AnswerRe: Am I missing a header file? Pin
Colin Angus Mackay1-Apr-05 7:37
Colin Angus Mackay1-Apr-05 7:37 
QuestionHow do I COMMIT an oracle temp table thru ado.net Pin
phil.short31-Mar-05 10:50
phil.short31-Mar-05 10:50 
GeneralSQL challenge Pin
Chris Losinger31-Mar-05 4:04
professionalChris Losinger31-Mar-05 4:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.