anandknr
Member
I have a dynamic query for table named table1 .
CREATE QUERY hQueryData.
CREATE BUFFER hBufferData FOR TABLE Table1.
hQueryData:SET-BUFFERS(hBufferData).
hQueryData:QUERY-PREPARE(sqlquery).
hQueryData:QUERY-OPEN.
hQueryData:GET-FIRST ().
REPEAT:
IF hQueryData:QUERY-OFF-END THEN LEAVE.
DO i=1 TO hBufferData:NUM-FIELDS :
h4 = hBufferData:BUFFER-FIELD(i) .
MESSAGE h4:NAME h4:BUFFER-VALUE() VIEW-AS ALERT-BOX .
END.
hQueryData:GET-NEXT ().
END.
How to rewrite the above query for two table named table1 and table2 . Please help for the syntax .
CREATE QUERY hQueryData.
CREATE BUFFER hBufferData FOR TABLE Table1.
hQueryData:SET-BUFFERS(hBufferData).
hQueryData:QUERY-PREPARE(sqlquery).
hQueryData:QUERY-OPEN.
hQueryData:GET-FIRST ().
REPEAT:
IF hQueryData:QUERY-OFF-END THEN LEAVE.
DO i=1 TO hBufferData:NUM-FIELDS :
h4 = hBufferData:BUFFER-FIELD(i) .
MESSAGE h4:NAME h4:BUFFER-VALUE() VIEW-AS ALERT-BOX .
END.
hQueryData:GET-NEXT ().
END.
How to rewrite the above query for two table named table1 and table2 . Please help for the syntax .