Folks –
New to the forum, so please bear with me.
I’m looking to do a simple merge of two tables containing date and time (MM/DD/YY HH:MM) information. The first table has hourly records of river flows:
Flow_DateTime Flow
1/1/22 0:00 13400
1/1/22 1:00 13900
1/1/22 2:00 14100
1/1/22 3:00 14300
1/1/22 4:00 14300
1/1/22 5:00 13700
1/1/22 6:00 13700
1/1/22 7:00 13600
1/1/22 8:00 13500
1/1/22 9:00 13400
1/1/22 10:00 13300
1/1/22 11:00 13200
1/1/22 12:00 13000
1/1/22 13:00 12900
1/1/22 14:00 12700
1/1/22 15:00 12500
1/1/22 16:00 12300
1/1/22 17:00 12200
1/1/22 18:00 12100
1/1/22 19:00 12000
1/1/22 20:00 12100
1/1/22 21:00 12200
1/1/22 22:00 12300
1/1/22 23:00 12300
1/2/22 0:00 12300
1/2/22 1:00 13200
1/2/22 2:00 13500
1/2/22 3:00 12900
1/2/22 4:00 13400
1/2/22 5:00 13600
1/2/22 6:00 14000
etc.
The second table has just daily records of fish counts (nominal time of 0:00):
Count_Date_Time Fish_Count
1/1/22 0:00 8
1/2/22 0:00 7
1/3/22 0:00 6
etc.
What I’d like to do is merge the two tables but preserve the hourly flow measurements, like this (Fish_Count cells blank for all times other than 0:00):
Flow_DateTime Flow Fish_Count
1/1/22 0:00 13400 8
1/1/22 1:00 13900
1/1/22 2:00 14100
1/1/22 3:00 14300
1/1/22 4:00 14300
1/1/22 5:00 13700
1/1/22 6:00 13700
1/1/22 7:00 13600
1/1/22 8:00 13500
1/1/22 9:00 13400
1/1/22 10:00 13300
1/1/22 11:00 13200
1/1/22 12:00 13000
1/1/22 13:00 12900
1/1/22 14:00 12700
1/1/22 15:00 12500
1/1/22 16:00 12300
1/1/22 17:00 12200
1/1/22 18:00 12100
1/1/22 19:00 12000
1/1/22 20:00 12100
1/1/22 21:00 12200
1/1/22 22:00 12300
1/1/22 23:00 12300
1/2/22 0:00 12300 7
1/2/22 1:00 13200
1/2/22 2:00 13500
1/2/22 3:00 12900
1/2/22 4:00 13400
1/2/22 5:00 13600
1/2/22 6:00 14000
etc.
But instead, by using a simple Select query linking the tables by Flow_DateTime and Count_Date_Time, the query collapses everything down to daily records (presumably because Count_Date_Time is the "lowest common denominator"):
Flow_DateTime Flow Fish_Count
1/1/22 0:00 13400 8
1/2/22 0:00 12300 7
1/3/22 0:00 14900 6
etc.
Is there a way to preserve the hourly lines of flow data in the query? Different query type? Use specific criteria?
Examples welcome; thanks for your help.
-R
New to the forum, so please bear with me.
I’m looking to do a simple merge of two tables containing date and time (MM/DD/YY HH:MM) information. The first table has hourly records of river flows:
Flow_DateTime Flow
1/1/22 0:00 13400
1/1/22 1:00 13900
1/1/22 2:00 14100
1/1/22 3:00 14300
1/1/22 4:00 14300
1/1/22 5:00 13700
1/1/22 6:00 13700
1/1/22 7:00 13600
1/1/22 8:00 13500
1/1/22 9:00 13400
1/1/22 10:00 13300
1/1/22 11:00 13200
1/1/22 12:00 13000
1/1/22 13:00 12900
1/1/22 14:00 12700
1/1/22 15:00 12500
1/1/22 16:00 12300
1/1/22 17:00 12200
1/1/22 18:00 12100
1/1/22 19:00 12000
1/1/22 20:00 12100
1/1/22 21:00 12200
1/1/22 22:00 12300
1/1/22 23:00 12300
1/2/22 0:00 12300
1/2/22 1:00 13200
1/2/22 2:00 13500
1/2/22 3:00 12900
1/2/22 4:00 13400
1/2/22 5:00 13600
1/2/22 6:00 14000
etc.
The second table has just daily records of fish counts (nominal time of 0:00):
Count_Date_Time Fish_Count
1/1/22 0:00 8
1/2/22 0:00 7
1/3/22 0:00 6
etc.
What I’d like to do is merge the two tables but preserve the hourly flow measurements, like this (Fish_Count cells blank for all times other than 0:00):
Flow_DateTime Flow Fish_Count
1/1/22 0:00 13400 8
1/1/22 1:00 13900
1/1/22 2:00 14100
1/1/22 3:00 14300
1/1/22 4:00 14300
1/1/22 5:00 13700
1/1/22 6:00 13700
1/1/22 7:00 13600
1/1/22 8:00 13500
1/1/22 9:00 13400
1/1/22 10:00 13300
1/1/22 11:00 13200
1/1/22 12:00 13000
1/1/22 13:00 12900
1/1/22 14:00 12700
1/1/22 15:00 12500
1/1/22 16:00 12300
1/1/22 17:00 12200
1/1/22 18:00 12100
1/1/22 19:00 12000
1/1/22 20:00 12100
1/1/22 21:00 12200
1/1/22 22:00 12300
1/1/22 23:00 12300
1/2/22 0:00 12300 7
1/2/22 1:00 13200
1/2/22 2:00 13500
1/2/22 3:00 12900
1/2/22 4:00 13400
1/2/22 5:00 13600
1/2/22 6:00 14000
etc.
But instead, by using a simple Select query linking the tables by Flow_DateTime and Count_Date_Time, the query collapses everything down to daily records (presumably because Count_Date_Time is the "lowest common denominator"):
Flow_DateTime Flow Fish_Count
1/1/22 0:00 13400 8
1/2/22 0:00 12300 7
1/3/22 0:00 14900 6
etc.
Is there a way to preserve the hourly lines of flow data in the query? Different query type? Use specific criteria?
Examples welcome; thanks for your help.
-R