Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL structure rejected by Crystal

Status
Not open for further replies.

tmccoy1

MIS
Jan 24, 2013
15
US
My SQL query runs fine in SQL management studio, but when pasting it into an SQL command in Crystal it is rejected with " HIST ...label is not among the applicable tables". Any pointers appreciated. here is the SQL

Select chrg.field1, hist.field2, etc.
FROM billing_tx_charge_detail AS chrg
INNER
JOIN billing_tx_history AS hist
ON chrg.FACILITY = hist.FACILITY
 
Nevermind. Found the issue. It was further down in my code in a union of the same tables and fields where I missed changing the alias from a copy/paste. DOAH!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top