Skip to content

Luventas Web Design

A new blog for developers in PHP, Java and mobile Development

  • Home
  • 2011
  • November
  • 7

Tag: 7. November 2011

Informationen aus mehreren Reihen trotz „GROUP BY“

Posted on 7 November 20117 November 2011 By luventas Keine Kommentare zu Informationen aus mehreren Reihen trotz „GROUP BY“
MySQL

Folgendes Szenario:

Ich habe eine Datenbanktabelle, in der zu einem Benutzer in mehreren Reihen eine Information steht.

Source code   
user_id, date, information_about_user_on_date
1, 2011-11-01, information_1
1, 2011-11-02, information_2
1, 2011-11-03, information_3

Diese Informationen möchte ich in einer Reihe anzeigen, ohne mir alle Zeilen einzeln holen zu müssen. In SQL gibt es zwar die schöne Funktion „GROUP BY“, hier würde ich aber nur noch eine der Informationen erhalten.

Read More „Informationen aus mehreren Reihen trotz „GROUP BY““ »

Information from several rows in spite of „GROUP BY“

Posted on 7 November 20117 November 2011 By luventas Keine Kommentare zu Information from several rows in spite of „GROUP BY“
General

Following scenario:

I have a database table, where information about an user is stored in several rows.

Source code   
user_id, date, information_about_user_on_date
1, 2011-11-01, information_1
1, 2011-11-02, information_2
1, 2011-11-03, information_3

This information I want to show in one single line without getting this information row by row. SQL has the nice functionality „GROUP BY“ but by using this normally I’m only getting one information.

Read More „Information from several rows in spite of „GROUP BY““ »

Copyright © 2023 Luventas Web Design.

Theme: Oceanly News by ScriptsTown

Diese Website nutzt Cookies, um bestmögliche Funktionalität bieten zu können. OK, verstanden
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
immer aktiv
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SPEICHERN & AKZEPTIEREN