Click here to Skip to main content
15,897,187 members
Home / Discussions / Database
   

Database

 
AnswerRe: Writing to Console from SQL Server Stored Procedure Pin
Wendelius4-Feb-09 7:19
mentorWendelius4-Feb-09 7:19 
GeneralRe: Writing to Console from SQL Server Stored Procedure Pin
ragtopcathy4-Feb-09 7:21
ragtopcathy4-Feb-09 7:21 
GeneralRe: Writing to Console from SQL Server Stored Procedure Pin
Wendelius4-Feb-09 8:01
mentorWendelius4-Feb-09 8:01 
QuestionCase sensitivity Pin
Fayu4-Feb-09 3:36
Fayu4-Feb-09 3:36 
AnswerRe: Case sensitivity Pin
Wendelius4-Feb-09 7:39
mentorWendelius4-Feb-09 7:39 
GeneralRe: Case sensitivity Pin
Fayu4-Feb-09 9:47
Fayu4-Feb-09 9:47 
GeneralRe: Case sensitivity Pin
Wendelius5-Feb-09 5:40
mentorWendelius5-Feb-09 5:40 
Questionsql with count [modified] Pin
foryou4-Feb-09 0:12
foryou4-Feb-09 0:12 
Hi!!
I have the following database :

id_student-------id_module-----id_validat-------years
1000--------------11------------2----------------2006
1000---------------11-----------2-----------------2007
2000---------------11-----------3----------------2006
2000---------------12-----------1-----------------2007
3000---------------11------------2----------------2009
3000---------------11------------3-----------------2008

I try to show id_student who id_module=11 and id_validat = 2For two different years
in this example the student who id_student=1000 verefier the condition.

but my sql is false
SELECT     COUNT(*) AS Expr1, id_student,years
FROM         T1
WHERE     (id_MODULE=11 )AND (id_validat= 2)
GROUP BY id_student,years
HAVING      (COUNT(*) = 2)

Can you help me?
Thanks

modified on Wednesday, February 4, 2009 8:50 AM

AnswerRe: sql with count Pin
Blue_Boy4-Feb-09 5:33
Blue_Boy4-Feb-09 5:33 
AnswerRe: sql with count Pin
Wendelius4-Feb-09 8:21
mentorWendelius4-Feb-09 8:21 
QuestionSQL Clause Run Order Pin
dataminers3-Feb-09 23:18
dataminers3-Feb-09 23:18 
AnswerRe: SQL Clause Run Order Pin
Muhammad Shahid Farooq4-Feb-09 1:39
professionalMuhammad Shahid Farooq4-Feb-09 1:39 
AnswerWhy ? Pin
David Mujica4-Feb-09 3:19
David Mujica4-Feb-09 3:19 
QuestionAbout SQL Query Pin
Sasmi_Office3-Feb-09 20:40
Sasmi_Office3-Feb-09 20:40 
AnswerRe: About SQL Query Pin
Wendelius4-Feb-09 7:42
mentorWendelius4-Feb-09 7:42 
AnswerRe: About SQL Query Pin
PunkIsNotDead4-Mar-10 5:40
PunkIsNotDead4-Mar-10 5:40 
QuestionSSCE DataContext class Constructor Pin
vsaratkar3-Feb-09 7:50
vsaratkar3-Feb-09 7:50 
QuestionSQL Server 2008 - Replication without a primary key in the publisher ? Pin
obarahmeh3-Feb-09 3:05
obarahmeh3-Feb-09 3:05 
AnswerRe: SQL Server 2008 - Replication without a primary key in the publisher ? Pin
Wendelius3-Feb-09 8:07
mentorWendelius3-Feb-09 8:07 
GeneralRe: SQL Server 2008 - Replication without a primary key in the publisher ? Pin
obarahmeh3-Feb-09 19:57
obarahmeh3-Feb-09 19:57 
GeneralRe: SQL Server 2008 - Replication without a primary key in the publisher ? Pin
Wendelius4-Feb-09 7:49
mentorWendelius4-Feb-09 7:49 
QuestionSSIS - How to transform data and push transformed data into Destination database Pin
CodalcoholicNBrainy2-Feb-09 23:12
CodalcoholicNBrainy2-Feb-09 23:12 
AnswerRe: SSIS - How to transform data and push transformed data into Destination database Pin
Giorgi Dalakishvili3-Feb-09 0:03
mentorGiorgi Dalakishvili3-Feb-09 0:03 
Questionprotect sql server database Pin
Any_India2-Feb-09 22:17
Any_India2-Feb-09 22:17 
AnswerRe: protect sql server database Pin
Wendelius3-Feb-09 1:48
mentorWendelius3-Feb-09 1:48 

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.