I am using Crystal Reports 9.0 and that report takes input data at runtime from an ASP.NET forum. When I go to Database>Show Query, this is how the query looks.
SELECT "eicr_part1"."cmpid", "eicr_part1"."PurReport", "eicr_part1"."inspDate", "global_customers"."add1", "global_customers"."add2", "global_customers"."add3", "global_customers"."town", "global_customers"."county", "global_customers"."postcode", "job_headers"."cust_po_no", "sites_national"."s_add1", "sites_national"."s_add2", "sites_national"."s_add3", "sites_national"."s_town", "sites_national"."s_county", "sites_national"."s_postcode", "eicr_part1"."rdbPremises", "eicr_part1"."rdbPremeissesOther", "eicr_part1"."EvAlt", "eicr_part1"."EvAltY", "eicr_part1"."GenCond", "eicr_part1"."testingDetail", "eicr_part1"."qty1", "eicr_part1"."qty2", "eicr_part1"."OccName", "eicr_part1"."observ", "areas_national"."name", "job_threads"."date_of_inspection", "system_users"."su_firstname", "system_users"."su_surname", "job_headers"."jid", "job_headers"."arid_id", "eicr_part1"."extent", "eicr_part1"."Limitation", "eicr_part1"."LstInsp", "eicr_part1"."Records", "eicr_part1"."EAInstall", "eicr_part1"."nextInspDue", "eicr_part1"."monYear", "eicr_part1"."Overall", "global_customers"."company", "job_threads"."cmpid", "signatures"."blob_data" FROM (((((("gessica"."dbo"."eicr_part1" "eicr_part1" INNER JOIN "gessica"."dbo"."job_threads" "job_threads" ON "eicr_part1"."cmpid"="job_threads"."cmpid") INNER JOIN "gessica"."dbo"."job_headers" "job_headers" ON "job_threads"."jid_ptr"="job_headers"."jid") INNER JOIN "gessica"."dbo"."sites_national" "sites_national" ON "job_headers"."site_ptr"="sites_national"."sid") INNER JOIN "gessica"."dbo"."global_customers" "global_customers" ON "job_headers"."cust_ptr"="global_customers"."gcid") INNER JOIN "gessica"."dbo"."system_users" "system_users" ON "job_headers"."engineer_id"="system_users"."id") INNER JOIN "gessica"."dbo"."areas_national" "areas_national" ON "job_headers"."arid_id"="areas_national"."arid") INNER JOIN "gessica"."dbo"."signatures" "signatures" ON "system_users"."id"="signatures"."suid_ptr" WHERE "eicr_part1"."cmpid"=1253607
I want to add Top 1 with the select statement. How can I accompalish this?