R
Royce Schnepp
Here is my dilema if you will. I am working on a database for foreclosure
sales, in the process of appeding information from DBF files to tables, the
primary key (T_S_NO) in some instances is left blank, meaning it wont get
added to the database.
What i did was create two tables, one with the primary key (Master Database)
for T_S_NO and one without a primary key (T_S_NO Null) that only contains the
information that has null values. What i was trying to do is create a union
query that goes to both these fields and grabs the information relating to a
specfic sale date, so my SQL statement became this.
Select * From [Master Database] WHERE [Master Database].SALE_DATE<=[Select
Date]
UNION ALL Select * From [T_S_NO Null] Where [T_S_NO Null].SALE_DATE<=[Select
Date];
However, it asks for the sale date input twice. Is there a way to eliminate
this from happening, or does anyone have a better idea as to how to do this?
Thanks!
sales, in the process of appeding information from DBF files to tables, the
primary key (T_S_NO) in some instances is left blank, meaning it wont get
added to the database.
What i did was create two tables, one with the primary key (Master Database)
for T_S_NO and one without a primary key (T_S_NO Null) that only contains the
information that has null values. What i was trying to do is create a union
query that goes to both these fields and grabs the information relating to a
specfic sale date, so my SQL statement became this.
Select * From [Master Database] WHERE [Master Database].SALE_DATE<=[Select
Date]
UNION ALL Select * From [T_S_NO Null] Where [T_S_NO Null].SALE_DATE<=[Select
Date];
However, it asks for the sale date input twice. Is there a way to eliminate
this from happening, or does anyone have a better idea as to how to do this?
Thanks!