Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL How to?
Message
From
31/10/2007 10:56:58
 
 
To
31/10/2007 10:36:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01265385
Message ID:
01265397
Views:
6
>What's best way to get the following with a SQL statement? I need to be able to get a list of all of the students that have passed three different tests. All of this data is stored in one table with the student id, test description, score and a logical to indicate pass or fail. Each test is stored in a separate record. Thanks in advance.
SELECT student_id;
FROM table_tests;
WHERE pass;
GROUP BY student_id;
HAVING COUNT(*)>=3
Previous
Reply
Map
View

Click here to load this message in the networking platform