I have a report that pulls data from multiple tables. One of the pieces of data needs to be changed. I have tried changing the links to the data and I keep getting about 10 times the records of returns than what was previously being returned.
Here is the sql query that is current. What I need is to change the "noc_attachment_viewed"."noc_attachment_viewed" to table "user_messages.message_acknowledged". Seems simple but the links are what looks like they are messing up.
SELECT "noc_attachment_viewed"."noc_attachment_viewed", "userlog"."name", "notice_of_change"."notice_of_change_text", "notice_of_change"."notice_of_change_title"
FROM (("eSOMS"."dbo"."noc_attachment_viewed" "noc_attachment_viewed" INNER JOIN "eSOMS"."dbo"."notice_of_change_documents" "notice_of_change_documents" ON ("noc_attachment_viewed"."notice_of_change_id"="notice_of_change_documents"."notice_of_change_id") AND ("noc_attachment_viewed"."document_number"="notice_of_change_documents"."document_number")) INNER JOIN "eSOMS"."dbo"."userlog" "userlog" ON "noc_attachment_viewed"."user_id"="userlog"."user_id") INNER JOIN "eSOMS"."dbo"."notice_of_change" "notice_of_change" ON "notice_of_change_documents"."notice_of_change_id"="notice_of_change"."notice_of_change_id"
ORDER BY "notice_of_change"."notice_of_change_title", "userlog"."name"