Click here to Skip to main content
15,919,931 members
Home / Discussions / Database
   

Database

 
QuestionMySQL to MsSQL Converter Pin
totocaster27-Sep-07 21:24
totocaster27-Sep-07 21:24 
AnswerRe: MySQL to MsSQL Converter Pin
originSH28-Sep-07 2:15
originSH28-Sep-07 2:15 
AnswerRe: MSQL Programmer Needed Pin
Colin Angus Mackay27-Sep-07 18:48
Colin Angus Mackay27-Sep-07 18:48 
QuestionDATE COMPARISON In JET SQL QUERY Pin
Nadia Monalisa27-Sep-07 12:08
Nadia Monalisa27-Sep-07 12:08 
QuestionCalling a web service from SQL [modified] Pin
DerekFL27-Sep-07 7:24
DerekFL27-Sep-07 7:24 
QuestionHow to set ExitCode for SQL Job Pin
alex.almeida27-Sep-07 6:04
alex.almeida27-Sep-07 6:04 
AnswerRe: How to set ExitCode for SQL Job Pin
DerekFL27-Sep-07 8:41
DerekFL27-Sep-07 8:41 
Questiondatabase select query probem Pin
Nishad8527-Sep-07 4:49
Nishad8527-Sep-07 4:49 
Hi I have 3 tables in my database. Students , SessionTable and Campus.
Table campus have two fields
CampusId and CampusName

and SessionTable have two fields
SessionId and Sessioname

and the tble student have12 fields
they are
studentId,Name,DOB,Grade,Phone,City, campus1,Session1, campus2,Session2, campus3,Session3


I want tao take all the rows of following fields from tables

STUDENTNAME,STUDENTID,DOB,GRADE,PHONE,CITY,Campus.CAMPUSNAME AS CAMPUS1,SessionTable.SESSIONNAME AS SESSION1,CAMPUS.CAMPUSNAME AS CAMPUS2,SessionTable.SESSIONNAME AS SESSION2,CAMPUS.CAMPUSNAME AS CAMPUS3,SessionTable.SESSIONNAME AS SESSION3


I wrote a query like this . But does not takes all the rows from Database



SELECT Students.StudentID, CampusList_1.Name As Campus1, CampusList_2.Name As Campus2 , CampusList_3.Name As Campus3, Students.Session1,Students.Session2,Students.Session3,Students.StudentName as FirstName,Students.StudentLastName as LastName, Students.DateOfBirth, Students.Street,Students.AppartmentNo,Students.City, Students.State, Students.ZipCode, Students.Phone, Students.ParentFirstName, Students.ParentLastName, Students.SSN, Students.SchoolYear, Students.Semester, iif(Students.Sibling,'Yes','No')as Sibling,iif(Students.Accepted,'Yes','No')as Accepted,iif(Students.Waitlisted,'Yes','No')As Waitlisted ,Students.ApplicationDate,Students.CurrentSchool,Students.AltenatePhone From ((( Students LEFT JOIN CampusList AS CampusList_1 ON Students.Campus1 = CampusList_1.CampusID) LEFT JOIN CampusList AS CampusList_2 ON Students.Campus2 = CampusList_2.CampusID) LEFT JOIN CampusList AS CampusList_3 ON Students.Campus3 = CampusList_3.CampusID )LEFT JOIN SessionTable ON SessionTable.SessionId=Students.Session1 LEFT JOIN SessionTable ON SessionTable.SessionId=Students.Session2 LEFT JOIN SessionTable ON SessionTable.SessionId=Students.Session3


Pls help me on this issue..........

AnswerRe: database select query probem Pin
andyharman27-Sep-07 7:00
professionalandyharman27-Sep-07 7:00 
QuestionHow to connect two database in an single application Pin
Exelioindia27-Sep-07 3:13
Exelioindia27-Sep-07 3:13 
AnswerRe: How to connect two database in an single application Pin
Pete O'Hanlon27-Sep-07 3:35
mvePete O'Hanlon27-Sep-07 3:35 
GeneralRe: How to connect two database in an single application Pin
Exelioindia27-Sep-07 4:23
Exelioindia27-Sep-07 4:23 
GeneralRe: How to connect two database in an single application Pin
Pete O'Hanlon27-Sep-07 4:29
mvePete O'Hanlon27-Sep-07 4:29 
AnswerRe: How to connect two database in an single application Pin
Shyam.r27-Sep-07 3:39
Shyam.r27-Sep-07 3:39 
GeneralRe: How to connect two database in an single application Pin
Pete O'Hanlon27-Sep-07 4:08
mvePete O'Hanlon27-Sep-07 4:08 
GeneralRe: How to connect two database in an single application Pin
PIEBALDconsult27-Sep-07 7:36
mvePIEBALDconsult27-Sep-07 7:36 
GeneralRe: How to connect two database in an single application Pin
Pete O'Hanlon27-Sep-07 22:01
mvePete O'Hanlon27-Sep-07 22:01 
AnswerRe: How to connect two database in an single application Pin
Colin Angus Mackay27-Sep-07 4:37
Colin Angus Mackay27-Sep-07 4:37 
AnswerRe: How to connect two database in an single application Pin
Gamzun29-Sep-07 18:37
Gamzun29-Sep-07 18:37 
QuestionSql Injection in SqlServer2005 Pin
subbu.sk27-Sep-07 2:08
subbu.sk27-Sep-07 2:08 
AnswerRe: Sql Injection in SqlServer2005 Pin
Colin Angus Mackay27-Sep-07 2:23
Colin Angus Mackay27-Sep-07 2:23 
GeneralRe: Sql Injection in SqlServer2005 Pin
Christian Graus27-Sep-07 2:24
protectorChristian Graus27-Sep-07 2:24 
JokeRe: Sql Injection in SqlServer2005 Pin
Colin Angus Mackay27-Sep-07 2:28
Colin Angus Mackay27-Sep-07 2:28 
GeneralRe: Sql Injection in SqlServer2005 Pin
Pete O'Hanlon27-Sep-07 2:30
mvePete O'Hanlon27-Sep-07 2:30 
JokeRe: Sql Injection in SqlServer2005 Pin
Paul Conrad2-Oct-07 10:27
professionalPaul Conrad2-Oct-07 10:27 

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.