In general, saltwater is denser than freshwater, so in estuaries where a river meets the ocean, the saltwater typically forms a wedge that extends upstream along the river bottom. However, the exact behavior of saltwater in a river can vary depending on factors such as the river's flow rate, the amount of freshwater input, and the topography of the riverbed.