I have one query as below:
select id,functional_system_user__c,
Test_Created_Date__c,
Test_Login_Date__c,lastmodifieddate,name,
isactive,Reactivation_Date__c,email,isportalenabled
from user where id='ABC'
Another query is :
select id,isfrozen,userid from userlogin where userid ='ABC'
I wanted isfrozen field to be included in 1st SOQL.I have written below query and i am getting error saying invalid relationship.
select id, functional_system_user__c, Test_Created_Date__c,
Test_Login_Date__c, isactive, Reactivation_Date__c, email,
isportalenabled,
(select isfrozen from userlogin )
from user where id='ABC'
Id of 1st SOQL is equal to userid of 2nd SOQL.
userlogin
seems like limitation.. You can check in eclipse's salesforce schema If we can subquery or not..