Announcement

Collapse
No announcement yet.

Geburtstage sortieren

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Geburtstage sortieren

    Hallo<BR>Bei einer Adressen-Tabelle wird das Geburtsdatum in einem Date-Feld gespeichert. Wie kann ich die Daten nach Geburtstag (unabhängig vom Geburtsjahr) sortieren?<BR>Danke
    In God we trust - all others pay cash!

  • #2
    Moin,<BR>
    mit EXTRACT.<BR>
    SELECT ...,EXTRACT (MONTH FROM xy), EXTRACT (DAY FROM xy)...<BR>
    Das ganze in einen 'View' und die Abfrage über ORDER BY sortieren.<BR><BR>

    Frohes neues<BR>
    Raine

    Comment


    • #3
      Hallo,
      <br><br>
      man braucht dafür nicht unbedingt eine VIEW anlegen. Ein ORDER BY <feld_index> in der SELECT-Abfrage reicht auch. ;-)
      <br><br>
      Thoma
      Thomas Steinmaurer

      Firebird Foundation Committee Member
      Upscene Productions - Database Tools for Developers
      Mein Blog

      Comment

      Working...
      X