If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Adabas > slowness in query excution

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-06, 08:11
aks4uever aks4uever is offline
Registered User
 
Join Date: Aug 2006
Posts: 5
slowness in query excution

hello every 1
can any one tell me ?

the most likekly cause for slow execution of the statement.

here are the table and qeury

Table one
module(module_id int, department char(15));

Table two
student(student_id int, name char(15), gender char(5));

Table three
Create table module_student(module_id int, student_id int, date_attended char(5));

Statment

Select distinc s.student_id
From module m, module_student ms, student s
Where m.module_id=m.ms.module_id
And s.gender=’M’
And m.department = ‘Computer science’;

many thanx
akshay
Reply With Quote
  #2 (permalink)  
Old 08-25-06, 16:45
JDan JDan is offline
Registered User
 
Join Date: Aug 2006
Posts: 2
If you have a large number of records in the tables, and the tables don't have any indexes, your query will run slow. Also I noticed that 'Computer science' is 16 characters long, and your quering a 15 character field.

Hope this helps.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On