Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to do Left Join for these tables.
My requirement is Country from left table and Latitude & Longitude from right table.
Let me know, how to do this in editor.
Hi Murali,
Try this:
Table1:
LOAD *,
FROM
Customer_table;
Left Join(Table1)
LOAD *,
FROM
LatLong;
Country will be become Primary key during this join.
Thanks,
AS
Hi,
Try like this
Customer:
LOAD
*
FROM Customer;
LEFT JOIN (Customer)
LOAD
*
FROM Latlng;
both the tables joined based on the Country.
Regards,
Jagan.
Can try like this:
Table1:
Load Country
from customertable
Left join (Table1)
Load Country,Latitude,Longitude
from LatLng;
By default the tables will be joined on Country. If you want all the fields then you can use * instead of particular field names.
Hope this helps!
Hi Murali,
Try this:
Table1:
LOAD *,
FROM
Customer_table;
Left Join(Table1)
LOAD *,
FROM
LatLong;
Country will be become Primary key during this join.
Thanks,
AS
Hi,
You can write script as,
CustomerTable:
LOAD Customer
From CustomerTable ;
LEFT JOIN(CustomerTable)
LatLng:
LOAD *
From LatLng ;
Hope this will help you
Regards,
Vijeta
Load * From customertable;
Load * From LatLng
Where Exists (Customer);
thanks for your responses !! I got it.
Kindly close the thread by selecting appropriate answer.
Hi Saini,
Thanks it worked finally !!