HI.. . I have to populate the Repeater list with values from two tables(EVENTS AND USERS).COLUMN NAMES from EVENTS I want to select are EVENT_ID,EVENT_DATE,COMMENT and from USERS i want to select USER_NAME WHERE EVENTS.USER_ID = USERS.USER_ID. and then i want to populate the repeater list with these values.How can i do this?
Query:
When i am using this above query i am getting this error..."Incorrect syntax near the keyword Union " and this error as well..."All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists."
Thanks.
Query:
Code:
SELECT * FROM EVENTS WHERE CALL_ID=" & CallId & " ORDER BY EVENT_ID UNION ALL SELECT A.USER_NAME from USERS A INNER JOIN EVENTS B ON A.USER_ID=B.USER_ID WHERE B.CALL_ID=" & CallId & "
When i am using this above query i am getting this error..."Incorrect syntax near the keyword Union " and this error as well..."All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists."
Thanks.
