User Tools

Site Tools


en:dev:all:examples:sql-1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dev:all:examples:sql-1 [27.06.2015 20:13] – [Abruf eines einzelnen Users] translated mrbasemanen:dev:all:examples:sql-1 [27.06.2015 20:36] (current) – finished translation and removed fixme mrbaseman
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
  
 ====== Proper use of SQL queries ====== ====== Proper use of SQL queries ======
Line 43: Line 42:
 </code> </code>
  
-==== Eine Seite abrufen und dazu den Namen des zugehörenden Users ==== +==== Retrieve a page and to the name of the associated user ==== 
-//(zur Vereinfachung werden nur die SQL-Statements dargestellt.)//\\ +//(For simplicity, only the SQL statements are displayed.)//\\ 
-Hierzu werden Daten aus zwei Tabellen benötigtdie Daten aus 'wb_pages' sowie der Benutzername aus der Tabelle 'wb_users'. +To achieve this, data from two tables are requiredthe data from 'wb_pages' and the user name from the table 'wb_users'This problem is elegantly solved without any additional PHP code with pure **SQL**. To do this, only the two tables need to be correlated by the fields 'modified_by' and 'user_id' linked by a //JOIN//.\\ 
-Diese Aufgabe ist ohne jeden zusätzlichen PHP-Code rein mit **SQL** elegant lösbarDazu müssen nur die beiden Tabellen über die Felder 'modified_by' und 'user_id' durch einen //JOIN// miteinander verknüpft werden.\\ +It is worthwhile in any casebe read in SQL to grasp the basics.
-Es lohnt sich auf jeden Fallsich in SQL einzulesen um die Grundlagen zu begreifen.+
 <code=SQL Snippet.php> <code=SQL Snippet.php>
 SELECT `wb_users`.`display_name`, `wb_pages`.*  SELECT `wb_users`.`display_name`, `wb_pages`.* 
Line 55: Line 53:
 </code> </code>
  
-FIXME //... wird mit Auftauchen weiterer Beispiele kontinuierlich fortgesetzt!//+FIXME //...will be continued with emergence of other examples!//
  
en/dev/all/examples/sql-1.1435436012.txt.gz · Last modified: 27.06.2015 20:13 by mrbaseman