Click here to Skip to main content
15,920,217 members
Home / Discussions / Database
   

Database

 
AnswerRe: Complex SQL queries Pin
Eddy Vluggen3-Jul-14 11:24
professionalEddy Vluggen3-Jul-14 11:24 
data modeling guy wrote:

Hello- can you give me any example
scenarios/questions for writing a complex SELECT statements? My intention is to
improve my SQL skills.
  • Calculate reputation points of a user.
  • Fetch the contibutions-section for a user (see the section on your user-page; it contains some statistics)
  • Fetch the ten members from the database that answered most questions last month.
  • Fetch the voting-percentages for the straw-poll result for all possible answers.
  • Fetch any low-repuation member that posts the same message in multiple places, ordered by the amount of similar messages.
  • Fetch the data to show the forum-content for page 3 of this forum, in threaded view, with 50 posts per page.

Roll eyes | :rolleyes:
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: Complex SQL queries Pin
Mycroft Holmes3-Jul-14 14:20
professionalMycroft Holmes3-Jul-14 14:20 
GeneralRe: Complex SQL queries Pin
data modeling guy3-Jul-14 20:05
data modeling guy3-Jul-14 20:05 
AnswerRe: Complex SQL queries Pin
Jörgen Andersson3-Jul-14 20:28
professionalJörgen Andersson3-Jul-14 20:28 
QuestionSQL convert(datetime, number) wrong? Pin
Miller Nguyen29-Jun-14 16:38
Miller Nguyen29-Jun-14 16:38 
AnswerRe: SQL convert(datetime, number) wrong? Pin
PIEBALDconsult29-Jun-14 17:45
mvePIEBALDconsult29-Jun-14 17:45 
GeneralRe: SQL convert(datetime, number) wrong? Pin
Miller Nguyen29-Jun-14 22:41
Miller Nguyen29-Jun-14 22:41 
AnswerRe: SQL convert(datetime, number) wrong? Pin
Bernhard Hiller29-Jun-14 21:19
Bernhard Hiller29-Jun-14 21:19 
GeneralRe: SQL convert(datetime, number) wrong? Pin
Jörgen Andersson29-Jun-14 22:38
professionalJörgen Andersson29-Jun-14 22:38 
GeneralRe: SQL convert(datetime, number) wrong? Pin
PIEBALDconsult30-Jun-14 3:39
mvePIEBALDconsult30-Jun-14 3:39 
GeneralRe: SQL convert(datetime, number) wrong? Pin
Jörgen Andersson30-Jun-14 3:53
professionalJörgen Andersson30-Jun-14 3:53 
AnswerRe: SQL convert(datetime, number) wrong? Pin
Jörgen Andersson29-Jun-14 22:39
professionalJörgen Andersson29-Jun-14 22:39 
GeneralRe: SQL convert(datetime, number) wrong? Pin
Miller Nguyen29-Jun-14 22:52
Miller Nguyen29-Jun-14 22:52 
GeneralRe: SQL convert(datetime, number) wrong? Pin
Jörgen Andersson29-Jun-14 23:03
professionalJörgen Andersson29-Jun-14 23:03 
GeneralRe: SQL convert(datetime, number) wrong? Pin
Bernhard Hiller30-Jun-14 0:38
Bernhard Hiller30-Jun-14 0:38 
GeneralRe: SQL convert(datetime, number) wrong? Pin
Jörgen Andersson30-Jun-14 1:15
professionalJörgen Andersson30-Jun-14 1:15 
AnswerRe: SQL convert(datetime, number) wrong? Pin
GuyThiebaut30-Jun-14 0:52
professionalGuyThiebaut30-Jun-14 0:52 
QuestionMySQL Stored Procs - Pin
ericgahn29-Jun-14 9:08
ericgahn29-Jun-14 9:08 
AnswerRe: MySQL Stored Procs - Pin
Wayne Gaylard29-Jun-14 22:37
professionalWayne Gaylard29-Jun-14 22:37 
GeneralRe: MySQL Stored Procs - Pin
ericgahn1-Jul-14 19:03
ericgahn1-Jul-14 19:03 
GeneralRe: MySQL Stored Procs - Pin
Wayne Gaylard1-Jul-14 19:28
professionalWayne Gaylard1-Jul-14 19:28 
QuestionQuestion about File Server / MySQL Database Pin
Jassim Rahma29-Jun-14 2:30
Jassim Rahma29-Jun-14 2:30 
AnswerRe: Question about File Server / MySQL Database Pin
Peter Leow29-Jun-14 3:19
professionalPeter Leow29-Jun-14 3:19 
AnswerRe: Question about File Server / MySQL Database Pin
Bernhard Hiller29-Jun-14 21:12
Bernhard Hiller29-Jun-14 21:12 
Questiondatabase Pin
sheikh muneeb28-Jun-14 7:18
sheikh muneeb28-Jun-14 7:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.