Hi Guys, me again, making trouble...
I am trying to create a file (.txt) pulling data from various Fox 2.6 tables. I realize the help you give is only as good as the info I give so I will do my very best...
Ultimately I want to to create a mini program with the proper SQL statements. For now, I am just I am using the Create Queries from the command prompt (Create table using 1 query and then creating a 2nd table using results from first query plus more logic to create a final table with the data I want. Then a COPY TO file once I confirm data is accurate... Yeah, I know, probably not very efficient... (refer back to "making trouble" above)
My data is good but includes DUPLICATES I am trying to clean up.
Tables (I think I need) with field names (I think I need) and if indexed as FYI.
lm_pkage.cert_code (C,8) Indexed
lm_pkage.f_name (C,30)
lm_pkage.l_name (C,30) Indexed
lm_em2cc.cert_code (C,8) Indexed
lm_em2cc.email (C,75) Indexed
lm_stdnt.f_name (C,30)
lm_stdnt.l_name (C,30)
(There is an index on l_name+f_name)
lm_stdnt.email (C,75)
I will give you the 2 SQLs I have created.
In this final table I get results that include the following.
The way the overall data is set up...
lm_stdnt table has both Kimberly and Julianna (Same last name field = L_name) Lets use "Smith"
lm_pkage table has only ONE record with that certificate code (60A87184) and it is assigned to Julianna
lm_em2cc table has both kimberly and Julianna with unique email address
I would like the results to exclude Kimberly.
I have probably 15 situations that create duplicates like this that I would like to clean up.
Contributions appreciated. I also like to learn so feel free to explain.
Thanks in advance.
Joe
I am trying to create a file (.txt) pulling data from various Fox 2.6 tables. I realize the help you give is only as good as the info I give so I will do my very best...
Ultimately I want to to create a mini program with the proper SQL statements. For now, I am just I am using the Create Queries from the command prompt (Create table using 1 query and then creating a 2nd table using results from first query plus more logic to create a final table with the data I want. Then a COPY TO file once I confirm data is accurate... Yeah, I know, probably not very efficient... (refer back to "making trouble" above)
My data is good but includes DUPLICATES I am trying to clean up.
Tables (I think I need) with field names (I think I need) and if indexed as FYI.
lm_pkage.cert_code (C,8) Indexed
lm_pkage.f_name (C,30)
lm_pkage.l_name (C,30) Indexed
lm_em2cc.cert_code (C,8) Indexed
lm_em2cc.email (C,75) Indexed
lm_stdnt.f_name (C,30)
lm_stdnt.l_name (C,30)
(There is an index on l_name+f_name)
lm_stdnt.email (C,75)
I will give you the 2 SQLs I have created.
Code:
Code:
In this final table I get results that include the following.
The way the overall data is set up...
lm_stdnt table has both Kimberly and Julianna (Same last name field = L_name) Lets use "Smith"
lm_pkage table has only ONE record with that certificate code (60A87184) and it is assigned to Julianna
lm_em2cc table has both kimberly and Julianna with unique email address
I would like the results to exclude Kimberly.
I have probably 15 situations that create duplicates like this that I would like to clean up.
Contributions appreciated. I also like to learn so feel free to explain.
Thanks in advance.
Joe