Skip to content
Advertisement

SQL Sybase – How to display on the same row

Apologies as I’m really new to SQL, and I’m trying to create a code that would extract all values in the same row, in their same respective identifiers (fundno and fund name).

What I want is all the values are in the same row, and not separated.

select

What appears is this:

https://imgur.com/a/dqPRQ6X

Can anyone please help me fix the code? Any kind of help would be really appreciated. Thank you!!

Advertisement

Answer

You want aggregation . . . and proper JOIN syntax:

Notes:

  • Never use commas in the FROM clause.
  • Always use proper, explicit, standard JOIN syntax.
  • Use meaningful table aliases (abbreviations for table names), rather than arbitrary letters.
  • Only use single quotes for string and date constants, not for column aliases.
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement