I have the following two tables
gl_master
glm_account,glm_prft_ctr
10000 1
10000 2
10000 3
10000 4
gl_delete
gld_account,gld_prft_ctr
10000 2
10000 4
I am doing the following query:
SELECT * FROM gl_master
WHERE glm_account in (select gld_account from gl_delete)
AND glm_prft_ctr in (select gld_prft_ctr from gl_delete)
I am getting ALL of the records from gl_master instead of justt the two records that match from gl_delete
Urgent help needed!
TIA
Nique
gl_master
glm_account,glm_prft_ctr
10000 1
10000 2
10000 3
10000 4
gl_delete
gld_account,gld_prft_ctr
10000 2
10000 4
I am doing the following query:
SELECT * FROM gl_master
WHERE glm_account in (select gld_account from gl_delete)
AND glm_prft_ctr in (select gld_prft_ctr from gl_delete)
I am getting ALL of the records from gl_master instead of justt the two records that match from gl_delete
Urgent help needed!
TIA
Nique