Hi all ,

I recently started learning MYSQL :

There are two tables in my database

Table A - 562712 Records

'Link', 'varchar(50)', 'YES', '', NULL, ''
'Feature', 'varchar(50)', 'YES', '', NULL, ''
'Chromosome', 'varchar(20)', 'YES', '', NULL, ''
'Start', 'int(11)', 'YES', '', NULL, ''
'End', 'int(11)', 'YES', '', NULL, ''

Table B - 1240 Records
Start, int(11), NO, , ,
End, int(11), NO, , ,

I am trying to execute a simple query :
SELECT A.Link,A.Start_Position,A.Stop_Position,A.Chromosome,A.Start,A.End FROM A,B where B.Start <= A.Start and B.End >= A.End;

This query is taking more than two minutes to execute .. Can anyone please suggest me some changes ...