Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Command -Combing 2 different date fields

Status
Not open for further replies.

shaleen7

MIS
Jun 23, 2002
188
US
I need to combine 2 queries into a SQL command. The problem is I have to combine two different date fields.

SQL command:
Tableapp.appdate[/color red], Tableapp.appno, tablecountry.countryname, tablename.lastname
from Table.appno, table.country, table.name
UNION
Table.app.pubulicationdate[/color red],Tableapp.appno, tablecountry.countryname, tablename.lastname
from Table.appno, table.country, table.name

Tableapp.appdate and Table.app.pubulicationdate are considered applications. I need to combine both fields so I can count the number of apps in each month.

How can I accomplish this?

Thanks
 
What version of CR are you using?

Are both Tableapp.appdate and Table.app.pubulicationdate date datatypes?

~Brian
 
You still didn't mention what version of CR you are using. You should also provide information on how the appno, country, and name tables are joined.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top