table manipulation

Hi all

Happy Christmas and Advanced wishes for a New year -2013

I have a doubt on table manipulation. pls help

Shown below is a table of entries, I want to have those gene records which contain SNP information. i. e the coordinates (start, end) of an SNP should lie within the regions of (start, end) of the gene. Ex: 1593 of SNP record is contained in (337, 2799) interval of the gene record. The output should just be the ID, locus_tag, gene_synonymn, db_xref.

How to do it. pls help

referenceNameprovenancefeatureTypestartendlengthscorestrandphaseIDlocus_taggene_synonymdb_xreffeatureSetNamelocationTypereferenceBasealternativeBasemutationTypevariantQualitydepthaltFreqEMnumForwardRefAllelenumReverseRefAllelenumForwardAltAllelenumReverseAltAllelemappingQualityconsensusQualitygenotypeGTgenotypePLgenotypeGQexperimentName
NC_000913.2RefSeqgene19025566.1.NC_000913.2:thrLb0001ECK0001
JW4367
ECOCYC:EG11277
EcoGene:EG11277
GeneID:944742
gene
NC_000913.2RefSeqgene33727992463.1.NC_000913.2:thrAb0002ECK0002
Hs
JW0001
thrA1
thrA2
thrD
ECOCYC:EG10998
EcoGene:EG10998
GeneID:945803
gene
NC_000913.2.SNP159315931.1. SNP Roche454EXACTAGTransition9691003620-541/1129,27,051Roche454
NC_000913.2RefSeqgene28013733933.1.NC_000913.2:thrBb0003ECK0003
JW0002
ECOCYC:EG10999
EcoGene:EG10999
GeneID:947498
gene
NC_000913.2RefSeqgene373450201287.1.NC_000913.2:thrCb0004ECK0004
JW0003
ECOCYC:EG11000
EcoGene:EG11000
GeneID:945198
gene
NC_000913.2RefSeqgene52345530297.1.NC_000913.2:yaaXb0005ECK0005
JW0004
ECOCYC:G6081
EcoGene:EG14384
GeneID:944747
gene