Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Retrieve from DataBase

Retrieve from DataBase

Scheduled Pinned Locked Moved Database
database
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mr Wonderful
    wrote on last edited by
    #1

    Hi, I have training Database which contains 3 tables, STUDENTS,COURSES and STUDENT_COURSE which contains the F.k for the Students and Courses tables. The STUDENT_COURSE Contains StudentID,CourseID as Primary Key I need to write Stored Procedure that Return All Students attends 'MCSE' and 'MCSD' Courses. The following are The Attributes of all 3 tables 1- Students A. StudentID P.K B. StudentName C. Mobile D.Address 2- Courses A. CourseID P.k B. CourseName 3- Student_Course A.StudentID P.k, F.k B.CourseID P.k, F.k regards

    B 1 Reply Last reply
    0
    • M Mr Wonderful

      Hi, I have training Database which contains 3 tables, STUDENTS,COURSES and STUDENT_COURSE which contains the F.k for the Students and Courses tables. The STUDENT_COURSE Contains StudentID,CourseID as Primary Key I need to write Stored Procedure that Return All Students attends 'MCSE' and 'MCSD' Courses. The following are The Attributes of all 3 tables 1- Students A. StudentID P.K B. StudentName C. Mobile D.Address 2- Courses A. CourseID P.k B. CourseName 3- Student_Course A.StudentID P.k, F.k B.CourseID P.k, F.k regards

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      select students.*,Courses.*,Student_course.* from students,Courses,Student_Course where Student_Course.CourseID = Courses.CourseID and (Courses.CourseName = 'MCSE' or Courses.CourseName='MCSD')


      I Love T-SQL "Don't torture yourself,let the life to do it for you."

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups