DBA Data[Home] [Help]

APPS.HZ_GNR_PVT SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 131

     SELECT geography_id
     FROM   hz_geography_identifiers
     WHERE  UPPER(identifier_value) = l_country_code
     AND    identifier_type = 'CODE'
     AND    identifier_subtype = 'ISO_COUNTRY_CODE'
     AND    geography_use = 'MASTER_REF'
     AND    geography_type = 'COUNTRY'
     ;
Line: 222

              l_query := 'SELECT COUNT(*) FROM ('||l_query_temp||')';
Line: 748

		SELECT hg.geography_name, hg.geography_id, hg.geography_code
		FROM   hz_geography_identifiers hi
		      ,hz_geographies hg
		WHERE  hi.identifier_type = 'NAME'
		AND    UPPER(hi.identifier_value) = v_geo_name
		AND    hi.geography_type = v_geo_type
		AND    hi.geography_use = 'MASTER_REF'
		AND    hi.geography_id  = hg.geography_id
		AND    hg.geography_use = 'MASTER_REF'
		AND    UPPER(hg.country_code) = v_country_code
		AND    SYSDATE BETWEEN hg.START_DATE AND hg.END_DATE
		;
Line: 762

		SELECT hg.geography_name, hg.geography_id, hg.geography_code
		FROM   hz_geography_identifiers hi
		      ,hz_geographies hg
		WHERE  hi.identifier_type = 'CODE'
		AND    UPPER(hi.identifier_value) = v_geo_code
		AND    hi.geography_type = v_geo_type
		AND    hi.geography_use = 'MASTER_REF'
		AND    hi.geography_id  = hg.geography_id
		AND    hg.geography_use = 'MASTER_REF'
		AND    UPPER(hg.country_code) = v_country_code
		AND    SYSDATE BETWEEN hg.START_DATE AND hg.END_DATE
		;
Line: 835

  l_select      VARCHAR2(2000);
Line: 836

  l_select_6    VARCHAR2(1000);
Line: 898

  l_select_mp      VARCHAR2(1000);
Line: 1276

  PROCEDURE  insert_in_geo_suggest_tbl (pv_geo_data_count   NUMBER,
                                         pv_geo_rec_tab_col  VARCHAR2,
                                         pv_geo_rec_geo_name VARCHAR2,
                                         pv_geo_rec_geo_id   NUMBER,
                                         pv_geo_rec_geo_code VARCHAR2)
  IS
   pv_geo_rec_geo_type VARCHAR2(100);
Line: 1371

  END insert_in_geo_suggest_tbl;
Line: 1376

  PROCEDURE  insert_in_geo_rec_tbl (pv_geo_data_count   NUMBER,
                                    pv_geo_rec_element_col  VARCHAR2,
                                    pv_geo_rec_geo_name VARCHAR2,
                                    pv_geo_rec_geo_id   NUMBER,
                                    pv_geo_rec_geo_code VARCHAR2)
  IS
   pv_geo_rec_geo_type VARCHAR2(100);
Line: 1425

  END insert_in_geo_rec_tbl;
Line: 1448

       insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1468

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1490

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1512

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1534

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1555

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1577

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1599

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1621

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1643

         insert_in_geo_suggest_tbl(ll_geo_suggest_index,
	                              l_geo_rec_tab_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1658

  PROCEDURE insert_mp_in_geo_rec_proc (ll_geo_data_count IN NUMBER,
			                           ll_geo_type       IN VARCHAR2,
                                       ll_geo_name  	  IN VARCHAR2,
                                       ll_geo_code 	  IN VARCHAR2,
                                       ll_geo_id   	  IN NUMBER,
									   x_insert_geo_suggest_rec OUT nocopy VARCHAR2) IS
   ll_mapped_param_value    VARCHAR2(100);
Line: 1682

       		   insert_in_geo_rec_tbl(ll_geo_data_count,
	                              ll_mapped_element_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1689

              x_insert_geo_suggest_rec := 'N';
Line: 1691

        ELSE -- if mapped parameter not passed, insert it
       		   insert_in_geo_rec_tbl(ll_geo_data_count,
	                              ll_mapped_element_col,
	                              l_geo_rec_geo_name,
	                              l_geo_rec_geo_id,
	                              l_geo_rec_geo_code
							      );
Line: 1701

  END insert_mp_in_geo_rec_proc;
Line: 1712

   l_insert_geo_valid_rec_final VARCHAR2(1);
Line: 1713

   l_insert_geo_suggest_rec VARCHAR2(1);
Line: 1739

    SELECT COUNT(*)
    INTO   l_structure_level_count
	FROM   hz_geo_structure_levels
	WHERE  country_code = upper(p_country_code)
	CONNECT BY geography_type = PRIOR parent_geography_type
	AND    country_code = upper(p_country_code)
	START WITH geography_type = ll_geo_type
	AND    country_code = upper(p_country_code);
Line: 1749

	  -- build the select statement
	  l_select_mp :=  'SELECT  distinct p0.geography_id , p0.geography_name ,'
                    ||'p0.geography_code , p0.geography_type '
                    ||',p1.geography_id , p1.geography_name ,'
                    ||'p1.geography_code , p1.geography_type ';
Line: 1776

           l_select_mp := l_select_mp ||',p'||i||'.geography_id , p'||i||'.geography_name '
                                      ||',p'||i||'.geography_code, p'||i||'.geography_type ';
Line: 1803

	         l_select_mp := l_select_mp ||', NULL ';
Line: 1807

         l_sql_stmt_mp := l_select_mp||l_from_mp||l_where_mp;
Line: 1873

			   insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_1,
                                               ll_geo_name => rec_mp.geo_name_1,
                                               ll_geo_code => rec_mp.geo_code_1,
                                               ll_geo_id   => rec_mp.geo_id_1,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1879

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 1887

             IF ((rec_mp.geo_id_2 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_2,
                                               ll_geo_name => rec_mp.geo_name_2,
                                               ll_geo_code => rec_mp.geo_code_2,
                                               ll_geo_id   => rec_mp.geo_id_2,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1895

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 1904

             IF ((rec_mp.geo_id_3 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_3,
                                               ll_geo_name => rec_mp.geo_name_3,
                                               ll_geo_code => rec_mp.geo_code_3,
                                               ll_geo_id   => rec_mp.geo_id_3,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1912

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 1921

             IF ((rec_mp.geo_id_4 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_4,
                                               ll_geo_name => rec_mp.geo_name_4,
                                               ll_geo_code => rec_mp.geo_code_4,
                                               ll_geo_id   => rec_mp.geo_id_4,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1929

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 1938

             IF ((rec_mp.geo_id_5 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_5,
                                               ll_geo_name => rec_mp.geo_name_5,
                                               ll_geo_code => rec_mp.geo_code_5,
                                               ll_geo_id   => rec_mp.geo_id_5,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1946

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 1955

             IF ((rec_mp.geo_id_6 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_6,
                                               ll_geo_name => rec_mp.geo_name_6,
                                               ll_geo_code => rec_mp.geo_code_6,
                                               ll_geo_id   => rec_mp.geo_id_6,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1963

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 1972

             IF ((rec_mp.geo_id_7 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_7,
                                               ll_geo_name => rec_mp.geo_name_7,
                                               ll_geo_code => rec_mp.geo_code_7,
                                               ll_geo_id   => rec_mp.geo_id_7,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1980

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 1989

             IF ((rec_mp.geo_id_8 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_8,
                                               ll_geo_name => rec_mp.geo_name_8,
                                               ll_geo_code => rec_mp.geo_code_8,
                                               ll_geo_id   => rec_mp.geo_id_8,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 1997

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 2006

             IF ((rec_mp.geo_id_9 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_9,
                                               ll_geo_name => rec_mp.geo_name_9,
                                               ll_geo_code => rec_mp.geo_code_9,
                                               ll_geo_id   => rec_mp.geo_id_9,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 2014

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 2023

             IF ((rec_mp.geo_id_10 IS NOT NULL) AND (NVL(l_insert_geo_valid_rec_final,'Y') <> 'N'))
			 THEN
               insert_mp_in_geo_rec_proc (ll_geo_data_count => l_geo_data_count,
			                                   ll_geo_type => rec_mp.geo_type_10,
                                               ll_geo_name => rec_mp.geo_name_10,
                                               ll_geo_code => rec_mp.geo_code_10,
                                               ll_geo_id   => rec_mp.geo_id_10,
											   x_insert_geo_suggest_rec => l_insert_geo_suggest_rec);
Line: 2031

               IF (l_insert_geo_suggest_rec = 'N') THEN
                 l_insert_geo_valid_rec_final := 'N';
Line: 2037

             IF (l_insert_geo_valid_rec_final = 'N') THEN
               geo_rec_tbl.DELETE(l_geo_data_count);
Line: 2039

               l_insert_geo_valid_rec_final := 'Y';
Line: 2040

               l_insert_geo_suggest_rec := 'Y';
Line: 2107

	  -- Select clause
      -- NOTE : IF ANY element is added or deleted in select clause, modify geo_rec_type
      -- record type accordingly.
	  l_select := 'SELECT DISTINCT hg0.GEOGRAPHY_ID, hg0.GEOGRAPHY_TYPE, hg0.GEOGRAPHY_NAME,'||
       		   	  'hg0.GEOGRAPHY_CODE, hg0.MULTIPLE_PARENT_FLAG, hg0.COUNTRY_CODE,'||
       			  'hg0.GEOGRAPHY_ELEMENT1, hg0.GEOGRAPHY_ELEMENT1_ID, hg0.GEOGRAPHY_ELEMENT1_CODE,'||
				  'hg0.GEOGRAPHY_ELEMENT2, hg0.GEOGRAPHY_ELEMENT2_ID, hg0.GEOGRAPHY_ELEMENT2_CODE,'||
       			  'hg0.GEOGRAPHY_ELEMENT3, hg0.GEOGRAPHY_ELEMENT3_ID, hg0.GEOGRAPHY_ELEMENT3_CODE,'||
       			  'hg0.GEOGRAPHY_ELEMENT4, hg0.GEOGRAPHY_ELEMENT4_ID, hg0.GEOGRAPHY_ELEMENT4_CODE,'||
       			  'hg0.GEOGRAPHY_ELEMENT5, hg0.GEOGRAPHY_ELEMENT5_ID, hg0.GEOGRAPHY_ELEMENT5_CODE,'||
       			  'hg0.GEOGRAPHY_ELEMENT6, hg0.GEOGRAPHY_ELEMENT6_ID,'||
       			  'hg0.GEOGRAPHY_ELEMENT7, hg0.GEOGRAPHY_ELEMENT7_ID,'||
				  'hg0.GEOGRAPHY_ELEMENT8, hg0.GEOGRAPHY_ELEMENT8_ID,'||
       			  'hg0.GEOGRAPHY_ELEMENT9, hg0.GEOGRAPHY_ELEMENT9_ID,'||
       			  'hg0.GEOGRAPHY_ELEMENT10, hg0.GEOGRAPHY_ELEMENT10_ID ';
Line: 2153

      l_sql_stmt_2 := ' UNION ALL '||l_select ||l_from||' , hz_geography_identifiers hg1 '
      			   	  ||' WHERE hg0.geography_use = ''MASTER_REF'' '
	             	  ||' AND SYSDATE between hg0.start_date and hg0.end_date '
	             	  ||' AND upper(hg0.country_code)  = :x_country_code_101 '
                      ||' AND hg0.multiple_parent_flag = ''Y'' '
					  ||' AND hg0.geography_id = hg1.geography_id '
					  ||' AND hg1.geography_use = ''MASTER_REF'' '
					  ||' AND hg1.geography_type = :x_geo_type_101 '
					  ||' AND UPPER(hg1.identifier_value) LIKE :x_geo_name_101 '  ;
Line: 2169

      l_sql_stmt_3 := ' UNION ALL '||l_select ||l_from||' , hz_geography_identifiers hg1 '
      			   	  ||' WHERE hg0.geography_use = ''MASTER_REF'' '
	             	  ||' AND SYSDATE between hg0.start_date and hg0.end_date '
	             	  ||' AND upper(hg0.country_code)  = :x_country_code_102 '
                      ||' AND hg0.multiple_parent_flag = ''Y'' '
					  ||' AND hg0.geography_id = hg1.geography_id '
					  ||' AND hg1.geography_use = ''MASTER_REF'' '
					  ||' AND hg1.geography_type = :x_geo_type_102 '
					  ||' AND UPPER(hg1.identifier_value) LIKE :x_geo_name_102 '  ;
Line: 2197

          l_sql_stmt := l_select||l_from||l_where||l_sql_stmt_2||l_order_by;
Line: 2203

          l_sql_stmt := l_select||l_from||l_where||l_order_by;
Line: 2214

          l_sql_stmt := l_select||l_from||l_where||l_sql_stmt_2||l_order_by;
Line: 2238

          l_sql_stmt := l_select||l_from||l_from_6||l_where_6||l_sql_stmt_2||l_order_by;
Line: 2241

          l_sql_stmt := l_select||l_from||l_from_7||l_where_7||l_sql_stmt_2||l_sql_stmt_3||l_order_by;
Line: 2244

          l_sql_stmt := l_select||l_from||l_from_6||l_where_6
                        ||' UNION '||
		                l_select||l_from||l_from_7||l_where_7||l_sql_stmt_2||l_sql_stmt_3||l_order_by;
Line: 2277

           ns_debug.put_line('Length of SELECT Clause : '||LENGTH(l_select));
Line: 3821

		          -- DELETE all other rows and keep only this row in address suggestion
	              l_geo_suggest_tbl_temp(1) := geo_suggest_tbl(i);
Line: 3823

	              geo_suggest_tbl.DELETE;
Line: 4017

    SELECT dmap.loc_component, dmap.geography_type, dmap.geo_element_col, dmap.loc_seq_num
    FROM   hz_geo_struct_map smap
          ,hz_geo_struct_map_dtl dmap
    WHERE  smap.address_style = ll_address_style
    AND    SMAP.country_code = ll_country_code
    AND    SMAP.loc_tbl_name = ll_table_name
    AND    smap.map_id = dmap.map_id
    ORDER BY dmap.loc_seq_num;
Line: 4028

    SELECT dmap.loc_component, dmap.geography_type, dmap.geo_element_col, dmap.loc_seq_num
    FROM   hz_geo_struct_map smap
          ,hz_geo_struct_map_dtl dmap
    WHERE  smap.address_style IS NULL
    AND    SMAP.country_code = ll_country_code
    AND    SMAP.loc_tbl_name = ll_table_name
    AND    smap.map_id = dmap.map_id
    ORDER BY dmap.loc_seq_num;
Line: 4040

    SELECT haud.geography_type
    FROM   hz_geo_struct_map smap
          ,hz_geo_struct_map_dtl dmap
          ,hz_address_usages hau
          ,hz_address_usage_dtls haud
    WHERE  smap.address_style = ll_address_style
    AND    SMAP.country_code = ll_country_code
    AND    SMAP.loc_tbl_name = ll_table_name
    AND    smap.map_id = dmap.map_id
    AND    smap.map_id = hau.map_id
    AND    hau.usage_code = ll_usage
    AND    hau.status_flag = 'A'
    AND    hau.usage_id = haud.usage_id
    AND    haud.geography_type = dmap.geography_type
    ORDER BY dmap.loc_seq_num;
Line: 4059

    SELECT haud.geography_type
    FROM   hz_geo_struct_map smap
          ,hz_geo_struct_map_dtl dmap
          ,hz_address_usages hau
          ,hz_address_usage_dtls haud
    WHERE  smap.address_style IS NULL
    AND    SMAP.country_code = ll_country_code
    AND    SMAP.loc_tbl_name = ll_table_name
    AND    smap.map_id = dmap.map_id
    AND    smap.map_id = hau.map_id
    AND    hau.usage_code = ll_usage
    AND    hau.status_flag = 'A'
    AND    hau.usage_id = haud.usage_id
    AND    haud.geography_type = dmap.geography_type
    ORDER BY dmap.loc_seq_num;
Line: 4077

      geo_struct_tbl.DELETE;
Line: 4615

          geo_suggest_tbl.DELETE(1);
Line: 5228

   l_insert_geo_valid_rec_final VARCHAR2(1);
Line: 5229

   l_insert_geo_suggest_rec     VARCHAR2(1);
Line: 5233

   l_select_child               VARCHAR2(2000);
Line: 5297

	           l_select_child := 'SELECT  distinct p1.geography_id , p1.geography_name ,'
	                           ||'p1.geography_code , p1.geography_type ';
Line: 5313

	           l_select_child := l_select_child ||',p'||l_child_map_count||'.geography_id , p'||l_child_map_count||'.geography_name '
	                                       ||',p'||l_child_map_count||'.geography_code, p'||l_child_map_count||'.geography_type ';
Line: 5334

	     -- pad rest of the columns in select stmt (to be fetched in child_rec record) to null
	     -- for example, if geo_struct_tbl contains 3 mapping rows, then other 7 elements (since total is 10),
	     -- have to be made NULL in select statement
	     l_total_null_cols_child := (10-(l_child_map_count))*4;
Line: 5341

	         l_select_child := l_select_child ||', NULL ';
Line: 5345

	     l_sql_stmt_child := l_select_child||l_from_child||l_where_child;
Line: 5408

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5430

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5453

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5476

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5499

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5522

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5545

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5568

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5591

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5614

	         		  insert_in_geo_suggest_tbl(l_geo_data_count,
		                              			 l_geo_rec_tab_col,
		                                         l_geo_rec_geo_name,
		                              			 l_geo_rec_geo_id,
		                              			 l_geo_rec_geo_code
								      			 );
Line: 5896

			  -- Delete bind tables that are used for search1,2,and3
			  bind_table_1.DELETE;
Line: 5898

			  bind_table_2.DELETE;
Line: 5921

	        -- we delete the results table before starting any new search routine
	        geo_suggest_tbl.DELETE;
Line: 5923

	        geo_rec_tbl.DELETE;
Line: 6220

			  bind_table_1.DELETE;
Line: 6326

		 -- return suggestion. Delete other suggested values and just return the
		 -- fetched values. Bug 4633962 (Fixed by Nishant Singhai on 29-Sep-2005)
		 -------------------------------------------------------------------------+
		 check_exact_match_del_rest;