Guest User

Untitled

a guest
Oct 14th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.17 KB | None | 0 0
  1.  SELECT artist.id                 AS artistid,
  2.        artist.name               AS artistname,
  3.        artist.username           AS artistnick,
  4.        artist.email              AS email,
  5.        artist.contactmethod      AS contactmethod,
  6.        artist.doesprojectwork    AS doesprojectwork,
  7.        track.id                  AS id,
  8.        track.online              AS online,
  9.        track.title               AS title,
  10.        track.duration            AS duration,
  11.        track.bpm                 AS bpm,
  12.        track.genre               AS genreid,
  13.        genre.genre               AS genre,
  14.        track.category            AS categoryid,
  15.        category.category         AS category,
  16.        track.mood                AS mood,
  17.        track.section             AS section,
  18.        track.description         AS description,
  19.        track.freewarelicense     AS freewarelicense,
  20.        track.nonexclusivelicense AS nonexclusivelicense,
  21.        track.exclusivelicense    AS exclusivelicense,
  22.        file.url                  AS url,
  23.        file.tag                  AS tag,
  24.        file.filesize             AS filesize,
  25.        file.filetype             AS filetypeid,
  26.        filetype.filetype         AS filetype,
  27.        file.resolution           AS resolution,
  28.        file.frequency            AS frequency,
  29.        file.channels             AS channels,
  30.        file.polyphony            AS polyphony,
  31.        file.nonexclusiveprice    AS nonexclusiveprice,
  32.        file.exclusiveprice       AS exclusiveprice,
  33.        file.note                 AS filenote,
  34.        preview.name              AS previewname,
  35.        preview.url               AS previewurl,
  36.        preview.note              AS previewnote,
  37.        file.id                   AS fileid
  38. FROM   artist,
  39.        track,
  40.        file,
  41.        filetype,
  42.        genre,
  43.        category
  44.        LEFT JOIN preview
  45.               ON file.id = preview.fileid
  46. WHERE  artist.id = track.artistid
  47.        AND category.id = track.category
  48.        AND genre.id = track.genre
  49.        AND track.id = file.trackid
  50.        AND file.filetype = filetype.id
  51.        AND track.id = 1013
  52. ORDER  BY title ASC,
  53.           filetype ASC,
  54.           preview.name ASC
Add Comment
Please, Sign In to add comment