Click here to Skip to main content
15,902,032 members
Home / Discussions / Database
   

Database

 
AnswerRe: Reading From Procedures? Pin
Colin Angus Mackay9-Sep-04 3:20
Colin Angus Mackay9-Sep-04 3:20 
GeneralRe: Reading From Procedures? Pin
Sumit Domyan9-Sep-04 18:55
Sumit Domyan9-Sep-04 18:55 
GeneralDTS packages Pin
Sudee8-Sep-04 22:42
Sudee8-Sep-04 22:42 
GeneralRe: DTS packages Pin
andyharman12-Sep-04 1:50
professionalandyharman12-Sep-04 1:50 
GeneralStored Procedure Pin
Goodway8-Sep-04 4:35
Goodway8-Sep-04 4:35 
GeneralRe: Stored Procedure Pin
Colin Angus Mackay8-Sep-04 5:06
Colin Angus Mackay8-Sep-04 5:06 
GeneralSQL server logs Pin
Imtiaz Murtaza8-Sep-04 2:08
Imtiaz Murtaza8-Sep-04 2:08 
GeneralSql Query Pin
rkyawal8-Sep-04 0:41
rkyawal8-Sep-04 0:41 
I have problem with this query..
it is taking too much time to fetch the records ..
can anybody tell me general solution on this.
is their any problem in any join ?
i have main problem in the following condition
( (b.cenid = c.cenidr and b.polyid = c.polyidr)or(b.cenid = c.cenidl and b.polyid = c.polyidl))
if only one condition is used then it gives result very fast
so
help me ..



SELECT a.laname, a.cfcc, b.cenid, b.polyid, c.tlid, d.fename, d.fetype, d.frlong as d_frlong, d.frlat as d_frlat, d.tolong as d_tolong, d.tolat as d_tolat, p.polylong, p.polylat, p.water ,e.rtsq, e.long1, e.lat1, e.long2, e.lat2, e.long3, e.lat3, e.long4, e.lat4, e.long5, e.lat5, e.long6, e.lat6, e.long7, e.lat7, e.long8, e.lat8, e.long9, e.lat9, e.long10, e.lat10 FROM ((((
( rt7 as a inner join rt8 as b on a.land = b.land )
inner join rti c on ( (b.cenid = c.cenidr and b.polyid = c.polyidr)or(b.cenid = c.cenidl and b.polyid = c.polyidl))
)
inner join rt11 as d on c.tlid = d.tlid)
inner join rtp as p on p.cenid = b.cenid and p.polyid = b.polyid ))
left join rt2 as e on d.tlid = e.tlid
WHERE a.laname like 'Mill Pond%' and
(( 3958.682 ) * ( acos( sin( (d.frlat) * 0.01745 ) * sin( ( $latc ) * 0.01745 ) + cos( (d.frlat) * 0.01745 ) * cos( ( $latc) * 0.01745 ) * cos( (d.frlong - ($longc) ) * 0.01745 ) ) )) <=$mile
ORDER BY a.laname
GeneralRe: Sql Query Pin
Colin Angus Mackay8-Sep-04 5:13
Colin Angus Mackay8-Sep-04 5:13 
GeneralRe: Sql Query Pin
EdbertP8-Sep-04 20:44
EdbertP8-Sep-04 20:44 
QuestionCan this exception be taken care of? Pin
mysorian7-Sep-04 18:15
professionalmysorian7-Sep-04 18:15 
AnswerRe: Can this exception be taken care of? Pin
Colin Angus Mackay8-Sep-04 5:17
Colin Angus Mackay8-Sep-04 5:17 
GeneralRe: Can this exception be taken care of? Pin
mysorian8-Sep-04 6:49
professionalmysorian8-Sep-04 6:49 
QuestionCounting NULL columns across a row? Pin
Mike Ellison7-Sep-04 9:38
Mike Ellison7-Sep-04 9:38 
Generaltextbox datasource retrieve text problem Pin
Bart-Man7-Sep-04 8:29
Bart-Man7-Sep-04 8:29 
GeneralPossible Solution Pin
Bart-Man8-Sep-04 3:52
Bart-Man8-Sep-04 3:52 
GeneralDTS Dynamic Properties Pin
ProffK6-Sep-04 23:20
ProffK6-Sep-04 23:20 
Questionhow to bind the textbox value to sqlCommand? Pin
DotNet6-Sep-04 19:49
DotNet6-Sep-04 19:49 
AnswerRe: how to bind the textbox value to sqlCommand? Pin
Sudee6-Sep-04 20:23
Sudee6-Sep-04 20:23 
AnswerRe: how to bind the textbox value to sqlCommand? Pin
Colin Angus Mackay6-Sep-04 23:10
Colin Angus Mackay6-Sep-04 23:10 
QuestionHow to insert ' into database? Pin
ting6686-Sep-04 19:10
ting6686-Sep-04 19:10 
AnswerRe: How to insert ' into database? Pin
Sudee6-Sep-04 20:17
Sudee6-Sep-04 20:17 
GeneralRe: How to insert ' into database? Pin
ting6686-Sep-04 20:28
ting6686-Sep-04 20:28 
GeneralRe: How to insert ' into database? Pin
Sudee6-Sep-04 22:09
Sudee6-Sep-04 22:09 
GeneralRe: How to insert ' into database? Pin
ting6686-Sep-04 22:48
ting6686-Sep-04 22:48 

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.