Hi all,
I am not sure if i can do this with sql. I was wondering if it was possible to have a conditional query that checks if one field is null if it is then adds another field (a populated one) to it. The query i have at present combines 2 fields together to create one field (creates 3 new fields like this).
A1 (new field created by fields
PRMF,Strd,STR
A2 (new field created by fields
Locd,Locdd
A3 (new field created by fields
PTN,CNT
A4
Postcode
Now i only want to add the condition to 1 field the A2, so for a record if Locd and Locdd are null add field STR to A3 only if Strd is not null for that record if Strd is null leave it as it is. The user is prompted to enter a postcode when the query is run.
As i said i am not sure if i can do this or not with sql, any help or advice very much appreciated, thanks in advance,
M-.
I am not sure if i can do this with sql. I was wondering if it was possible to have a conditional query that checks if one field is null if it is then adds another field (a populated one) to it. The query i have at present combines 2 fields together to create one field (creates 3 new fields like this).
A1 (new field created by fields
PRMF,Strd,STR
A2 (new field created by fields
Locd,Locdd
A3 (new field created by fields
PTN,CNT
A4
Postcode
Now i only want to add the condition to 1 field the A2, so for a record if Locd and Locdd are null add field STR to A3 only if Strd is not null for that record if Strd is null leave it as it is. The user is prompted to enter a postcode when the query is run.
As i said i am not sure if i can do this or not with sql, any help or advice very much appreciated, thanks in advance,
M-.