Advertisement
dragonbs

Mix of Peak and River Names

Sep 28th, 2023
1,868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.21 KB | None | 0 0
  1. SELECT [PeakName], [RiverName],
  2. LOWER(CONCAT(
  3.     [PeakName],
  4.     SUBSTRING([RiverName], 2, LEN([RiverName]))
  5.         )) AS [Mix]
  6. FROM [Peaks], [Rivers]
  7. WHERE RIGHT([PeakName], 1) = LEFT([RiverName], 1)
  8. ORDER BY [Mix]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement