I have this table
link_table
document_number |link_doc_ |link_doc_2 |link_doc_3 |link_doc_4 |link_doc_5
*AM0101 | AM0101 | CS0101 | AM0103 | AM0111 | AM0151
*AM0102 | CS0101 | AM0104 | PP0101 | RR0101 | AM9898
I want my SQL statement to return all document_number fields that have AM0101 in one of
the Link_doc_$ fields
SELECT document_number
FROM link_table
WHERE ? = AM0101
The result for this example table would be:
*AM0101
So basiscally the SQL would search through all the link_doc_$ fileds and return the document
number is criteria was met
link_table
document_number |link_doc_ |link_doc_2 |link_doc_3 |link_doc_4 |link_doc_5
*AM0101 | AM0101 | CS0101 | AM0103 | AM0111 | AM0151
*AM0102 | CS0101 | AM0104 | PP0101 | RR0101 | AM9898
I want my SQL statement to return all document_number fields that have AM0101 in one of
the Link_doc_$ fields
SELECT document_number
FROM link_table
WHERE ? = AM0101
The result for this example table would be:
*AM0101
So basiscally the SQL would search through all the link_doc_$ fileds and return the document
number is criteria was met