Hi Marcel,
I found another thread where you answered a question similar to mine and I tried executing the sql statement below but I am not sure what I am doing wrong, or if I am placing my quotes properly. Mainly because I don't understand the syntax fully. What I am showing below is the output of the msql query. It doesn't do anything .
Just to be sure, I ran the dgate command with those AE titles as they appear in the sql statement and with at least one of the patientID's in that list and it worked fine. I just want to be able to do it via the query. Your help is greatly appreciated.
As a side note, I will be doing a little more complicated query with left joins between two tables. The one below was just a test.
mysql> select 'dgate "--movestudy:VCT10,FIXEDREPOS', PatientID, ':','"' from convct10.dicompatients limit 0,10;
+--------------------------------------+------------+---+---+
| dgate "--movestudy:VCT10,FIXEDREPOS, | PatientID | : | " |
+--------------------------------------+------------+---+---+
| dgate "--movestudy:VCT10,FIXEDREPOS, | 0009703828 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10001538 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10055026 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10083937 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10103716 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10114688 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10134253 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10190846 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10256630 | : | " |
| dgate "--movestudy:VCT10,FIXEDREPOS, | 10356443 | : | " |
+--------------------------------------+------------+---+---+
10 rows in set (0.00 sec)