Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2012
    Posts
    14

    Unanswered: Combining queries

    Hey,

    I am trying to combine two different select statements but I have not been able to figure out the proper formation.... They are:
    SELECT Student_t.LastName, Student_t.Firstname, ENROLLMENT_STATUS_T.Description
    From STUDENT_T
    RIGHT JOIN ENROLLMENT_STATUS_T
    ON Student_t.StudentID = Enrollment_Status_t.StudentID

    select trunc(months_between(sysdate,EnrollmentDate)/12) "Years Enrolled"
    from STUDENT_T;

    Thanks again for the help!

    David

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    >I am trying to combine two different select statements
    Have you tried using Super Glue to get them to stick together?

    We don't have your tables or data.
    We don't know what result set you expect or desire.

    How will you, I or anyone recognize when correct SQL is posted here?
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •