OK, so, you are listing all the fields from the parent and nothing from the child but you have a join on the child and that duplicates all your parent records, that's why they look like duplicates. No matter what you do, as soon as you join to the child(many), your parent(one) will have...
Hello vaxman9,
I am using FoxPro 7 so I don't know what "derived " table is but if you want to create SUM() based on the logical field, all you have to do is
SUM(IIF(logical field,field1,0.00)) + 00000000000000.00 As sum_field
You need to pad the result with some zeros for the max or enough...
SitesMassTec,
So, RESERVAS.DBF is a parent(one) and PASSAGEIROS.DBF is a child(many). If you have more than one record in the child table with the same key as parent, you will have 5 records. If those 5 records are identical, that's what you are going to have. I mean, it's a bit hard to help...
Well, use GROUP BY the key field, LOCALIZA I guess. You use SELECT DISTINCT, even though I don't like it and do no use it. You have one-to-many relationship between two tables and it seems you have duplicated on many side, not sure why. Doesn't look like normalized database to me. Your...
Totally agree with all comments above. I don't want to sound like an a..s but it seems you are not very comfortable with writing your own SQL statements so try FoxPro View Wizard, that's how you can learn to write your won SQL. The only problem with the wizard(at least in FoxPro 7 I use), you...
You need to qualify LOCALIZA with table name. This field seems belong to both tables:
Select;
free_table1.LOCALIZA,;
free_table2.LOCALIZA AS LOCALIZA_2
Look at the FoxPro Help, it should say the same thing
...free tables located in D:\TEMP\free_table1, D:\TEMP\free_table2, you need to open them first:
use D:\TEMP\free_table1 in 0
use D:\TEMP\free_table2 in 0
Select;
free_table1.*,;
free_table2.*;
from free_table1;
JOIN free_table2
I do it all the time as long as you know where free...
We are using MMortals Framework by Kevin MacNish(not sure about last name, can double check tomorrow), using it for more than 25 years utilizing in commercial software. It's pretty great. Basically framework has a lot of base classes with a lot of functionality that you can use by calling a...
I don't quite understand your sample code but I am assuming you are trying to validate the entry in this textbox and show the message if there is no value. Do it on LostFocus() and return -1 so the cursor stays in the textbox. I don't really like this because the user will have to enter...
Thank you but this is not what I was looking for. I was talking to capitalize by default. If I type alltrim and open parenthesis, it used to capitalize to ALLTRIM(. Doesn't do it anymoer.
Hello fellow programmers. A bit embarrassed but will try it anyway. We are using FoxPro7 and I am having an issue with default capitalization of key words, like TRANSFORM() or ALLTRIM(). They keep showing up in low cases and, for the life of me, I can't find the default setting. Can't find it in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.