All,
I wonder if you can be some help, the above query returns a random 20% of the table emp.. I would like to beef this up to return a random 20000 rows (845000 in the table) from another table (clients) after I have already done a set of filters in the sql statement i.e.
select *
from le_clients a, le_flags b
where lc_client_id = lf_client_id
and LF_DECEASED_FLAG is null
and LF_MPS_FLAG is null
and LF_GONEAWAY is null
and lc_cust_flag is null
and LF_ET_FLAG is null
and LF_BEREAVE is null
and LF_SCR_OUT is null
and LF_CHIEF_EXEC is NULL
and LF_F2FSUPP_FLAG is null
and lf_utility_flag is null
and LF_STATUS = 'F2F'
and lf_catchment = 'IN_AREA'
Any help would be great....
Rgards
Adam
I wonder if you can be some help, the above query returns a random 20% of the table emp.. I would like to beef this up to return a random 20000 rows (845000 in the table) from another table (clients) after I have already done a set of filters in the sql statement i.e.
select *
from le_clients a, le_flags b
where lc_client_id = lf_client_id
and LF_DECEASED_FLAG is null
and LF_MPS_FLAG is null
and LF_GONEAWAY is null
and lc_cust_flag is null
and LF_ET_FLAG is null
and LF_BEREAVE is null
and LF_SCR_OUT is null
and LF_CHIEF_EXEC is NULL
and LF_F2FSUPP_FLAG is null
and lf_utility_flag is null
and LF_STATUS = 'F2F'
and lf_catchment = 'IN_AREA'
Any help would be great....
Rgards
Adam