Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CONVERT int klappt nicht

Empfohlene Antworten

Hallo !

Ich zähle mit " select count(distinct (c_ip)) as zugriffe" die täglichen Zugriffe auf eine Intranetseite. Diese gebe ich in einer Tabelle für einen ganzen Monat aus, wobei natürlich jedem "zugriff" das jeweilige Datum zugeordnet wird. Nun will ich alle täglichen Zugriffe zusammenzählen (für den Durchschnitt). Da das Feld c_ip ein varchar-Typ ist geht dieses nicht mit SUM oder AVG in meinem Select.

Weiterhin ist es nicht möglich mit einem CONVERT das c_ip-Feld in ein int zu konvertieren - ich nehme an es liegt an den IP's (217.98.105.125). Gibt es da in SQL noch irgendeine andere Lösung, oder kann man die einzelnen täglichen Zugriffe anders addieren ??

Hat da jemand eine Idde ??

Grüße,

Ulf

> Ich zähle mit " select count(distinct (c_ip)) as zugriffe" die täglichen Zugriffe

> Nun will ich alle täglichen Zugriffe zusammenzählen (für den Durchschnitt).

Nimm doch einfach das distinct weg, dass die Mehrfacheinträge filtert.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.