Hi There, not sure if this can be done with SQL or if there is an SQL
crossover

I have two tables:

Table "record":
id, record_id, data1, data2

Table "subrecord" :
id, record_id, name, value

In the subrecord the name contains the header title, and the value the
value. I need to:

1. Search the database

(`name` =...