Hi Marcel
I had gone through the user manual for dbquery and sql command. If possible will you please share some example of following scenarios.
SQL Query :
SELECT
dicompatients.PatientID,
dicompatients.PatientNam,
dicompatients.PatientBir,
dicompatients.PatientSex,
dicomstudies.AccessionN,
dicomstudies.ReferPhysi,
dicomstudies.StudyModal,
dicomstudies.StudyDate,
dicomstudies.StudyTime,
dicomstudies.StudyDescr
FROM
dicompatients
INNER JOIN dicomstudies ON dicompatients.PatientID = dicomstudies.PatientID
where dicomstudies.StudyModal = 'CT'
and Secondly
local a = sql("SELECT COUNT(PatientID) FROM DICOMPATIENTS");
sql("INSERT INTO UserTable (CounterID,Val) VALUES ('CT',a) ");
I wanted to insert some string and integer value data in tables.
Is the second query correct. If possible for you please share some lua scripts that communicate with database.
Please guide and share how can i write above query using dbquery command