function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to access fields in a relationship query

hi all,
i write a simple query like campaign cg=[select name from campaign cg where name='test_mahesh' ]
then i can access field name of campaign from
string name=;
if i write a relationship query as below:

campaign[ ] camp=[select, (select from leads ld where rating='hot') from campaign cg where name='test_mahesh' limit 1];

 how should I access name fields for campaign and leads?

please help me......