473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

I want to retreive student prerequisite for a particular student who wish to take a c

Query:

SELECT CP.CoursePrerequisite AS [missing prereq]
FROM CoursePrerequisite AS CP
WHERE (((CP.CourseCode)="EGCE 308")
AND (CP.CoursePrerequisite) NOT IN (SELECT StudentCourse.CourseCode FROM StudentCourse WHERE cwid = 987654321));

This query works fine if student has not completed none of the prerequisite required for the course, however if the student has completed atleast one prerequisite for the course then the query is returning wrong result: it's returning the result set as all the prerequisite for that course.

This query was working fine on SQL SERVER 2016 when I tried it on my Professor's machine, however when I'm trying to run the same query with few modifications it is returning wrong results. I've tried making my ACCESS database ANSI92 compatible but despite that I'm getting wrong results.

Please advise/assist at your earliest as I've a deadline to meet.
Mar 22 '17 #1
0 702

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Pieter Linden | last post by:
Hi, I think the subject line pretty much says it all... Say I have a students-classes database and I add a twist. I want to filter what courses a student can take by comparing the courses he...
7
by: RallyDSM | last post by:
Hello, I'm currently trying to read a .CSV file and get all the data into an array so I can work with it in the program. Here is what I currently have. Private Sub IntializeData() Dim AL...
6
by: schnag | last post by:
import java.util.*; class Student { private String name; private int score; public Student() { name = ""; score = 0; }
11
by: xxbabysue123xx | last post by:
Heres the problem: Create a class Student with instance data name, studentNumber, class (where class is a String containing one of the following: “Freshman”, “Sophomore”, “Junior”, “Senior”. ...
0
by: Bijoy Thangaraj | last post by:
Hello Programmers, If you are passionate about Technology and looking for a unique opportunity to share that talent, we are looking for you. If you are a college student from India, download...
0
by: Chetana | last post by:
I have one control which will run the video file but it is taking only .wmv file i want control which will also take input like .mov . If anyone has any idea reply me immidiately. Thanks.
2
by: sachin satav | last post by:
I want send Info on particular E-Mail ID when click on send button on form in ASP .Net .
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.