Click here to Skip to main content
15,925,661 members
Home / Discussions / Database
   

Database

 
QuestionSql query Pin
sarah_chandran3-Jan-09 3:45
sarah_chandran3-Jan-09 3:45 
AnswerRe: Sql query Pin
Wendelius3-Jan-09 4:13
mentorWendelius3-Jan-09 4:13 
AnswerRe: Sql query Pin
Vimalsoft(Pty) Ltd4-Jan-09 20:09
professionalVimalsoft(Pty) Ltd4-Jan-09 20:09 
GeneralRe: Sql query Pin
ChandraRam4-Jan-09 22:10
ChandraRam4-Jan-09 22:10 
AnswerRe: Sql query Pin
sarah_chandran5-Jan-09 14:01
sarah_chandran5-Jan-09 14:01 
Questionhow to display the data in monthwise formate in MYSQL Pin
jenny_anu2-Jan-09 23:16
jenny_anu2-Jan-09 23:16 
AnswerRe: how to display the data in monthwise formate in MYSQL Pin
Wendelius2-Jan-09 23:46
mentorWendelius2-Jan-09 23:46 
QuestionGenerate complex table with SQL for Crystal Report Pin
Ryo-kun01012-Jan-09 22:08
Ryo-kun01012-Jan-09 22:08 
Hello,
I have a problem with the exercise I am currently working with.
The database has 4 table:
PHASE
      id     Name
       1      Morning
       2      Afternoon
       3      Evening
       ...


STAFF
      id     Name
       1       John
       2       Mary
       ...


SESSION
      id      FirstdayOfWeek     DayOfWeek        Phase
       1      5 Jan 2009         Sat                1
       2      5 Jan 2009         Sun                3
       ...


DUTY
      Staff      Session
        1           1
        2           2
        ...


The program is to make report about the number of times that a staff do his/her duty in each phase in a specific month chosen by the user. It may look like this:
                   REPORT
    Staff: John (chosen by user)
    Month: Jan 2009 (chosen by user)
Date              Morning       Afternoon       Evening        ...
10 Jan 2009        yes            no               no
11 Jan 2009         no            no               no
.....
Total                3            6                0


Can you tell me how to make the SQL that give a table like the one above (with Date, Morning, Afternoon, Evening columns) to send it to the Crystal Report? Is this possible in just one SQL query? Thank you in advance.
AnswerRe: Generate complex table with SQL for Crystal Report Pin
Wendelius2-Jan-09 22:15
mentorWendelius2-Jan-09 22:15 
QuestionRe: Generate complex table with SQL for Crystal Report Pin
Ryo-kun01013-Jan-09 11:34
Ryo-kun01013-Jan-09 11:34 
AnswerRe: Generate complex table with SQL for Crystal Report Pin
Wendelius3-Jan-09 22:13
mentorWendelius3-Jan-09 22:13 
Questionhow to catch unhandled errors in sql server 2005 Pin
Amit Sk Sharma2-Jan-09 19:56
Amit Sk Sharma2-Jan-09 19:56 
AnswerRe: how to catch unhandled errors in sql server 2005 Pin
Wendelius2-Jan-09 22:11
mentorWendelius2-Jan-09 22:11 
Questionsql & attach Pin
reza assar2-Jan-09 7:48
reza assar2-Jan-09 7:48 
AnswerRe: sql & attach Pin
Wendelius2-Jan-09 8:03
mentorWendelius2-Jan-09 8:03 
AnswerRe: sql & attach Pin
Guffa4-Jan-09 19:47
Guffa4-Jan-09 19:47 
Questionnew component and release problem Pin
reza assar2-Jan-09 7:38
reza assar2-Jan-09 7:38 
AnswerRe: new component and release problem Pin
Wendelius2-Jan-09 7:48
mentorWendelius2-Jan-09 7:48 
QuestionNeed A Back Script for selected database of SQL 2000. Pin
Vivek Chopade2-Jan-09 3:03
Vivek Chopade2-Jan-09 3:03 
AnswerRe: Need A Back Script for selected database of SQL 2000. Pin
Wendelius2-Jan-09 4:38
mentorWendelius2-Jan-09 4:38 
Questionmedia saving in sql table Pin
Cruel Handsome2-Jan-09 0:46
Cruel Handsome2-Jan-09 0:46 
AnswerRe: media saving in sql table Pin
Wendelius2-Jan-09 4:36
mentorWendelius2-Jan-09 4:36 
Questiondatabase connectivity in vb .net using Acces Pin
Umesh_861-Jan-09 23:01
Umesh_861-Jan-09 23:01 
AnswerRe: database connectivity in vb .net using Acces Pin
Mycroft Holmes2-Jan-09 0:01
professionalMycroft Holmes2-Jan-09 0:01 
AnswerRe: database connectivity in vb .net using Acces Pin
Vimalsoft(Pty) Ltd4-Jan-09 19:50
professionalVimalsoft(Pty) Ltd4-Jan-09 19:50 

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.