Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

load with filter from another table

Hi All!

I really appreciate your help with the following issue:_

I have 3 tables:

"Country_ID" (table name):

load

Phy_id,

Country

select * from Countries;

Activity:

load

Activites_phy_id,

Date,

Name;

select * from Activites;

Station:

load,

Station_phy_id,

Date,

Location;

select * from stations;

I need to load from Activity table and Station table only the phy_id that appears on country_id.phy_id.

I tried to do that with "where Exists(Phy_id, Activites_phy_id)" for example in the "Activity" table load but it didn't work. Can someone please advise?

Thanks!

3 Replies
sunny_talwar

May be use the Where Exists statement here:

"Country_ID" (table name):

load

Phy_id,

Country;

select * from Countries;

Activity:

load

Activites_phy_id,

Date,

Name

Where Exists(Phy_id, Activites_phy_id);

select * from Activites;

Station:

load,

Station_phy_id,

Date,

Location

Where Exists(Phy_id, Station_phy_id);

select * from stations;

Not applicable
Author

Thanks for you response! but it didn't work I received the following error

"Script line Error

Else"

sunny_talwar

Would you be able to share the logfile?