Click here to Skip to main content
15,891,943 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQLite in-memory database - Loading sqlite db as memory db Pin
jschell18-Nov-11 10:48
jschell18-Nov-11 10:48 
GeneralRe: SQLite in-memory database - Loading sqlite db as memory db Pin
Prathapachandran19-Nov-11 3:30
professionalPrathapachandran19-Nov-11 3:30 
GeneralRe: SQLite in-memory database - Loading sqlite db as memory db Pin
jschell25-Nov-11 8:35
jschell25-Nov-11 8:35 
QuestionSelf-join to return either/or results? Pin
AHSTech17-Nov-11 6:12
AHSTech17-Nov-11 6:12 
AnswerRe: Self-join to return either/or results? Pin
David Mujica17-Nov-11 6:17
David Mujica17-Nov-11 6:17 
GeneralRe: Self-join to return either/or results? Pin
AHSTech17-Nov-11 7:14
AHSTech17-Nov-11 7:14 
AnswerRe: Self-join to return either/or results? Pin
SilimSayo18-Nov-11 4:53
SilimSayo18-Nov-11 4:53 
AnswerRe: Self-join to return either/or results? Pin
Chris Meech18-Nov-11 6:13
Chris Meech18-Nov-11 6:13 
How about a view that implements one criteria, called Result_view
create view result_view as
select StudentID
      ,SubjectCode
      ,AssessID
      ,CritID
      ,CritVal
  from StuAssess
 where assessId = 10 and CritID = 35
;

Then another view that implements the other criteria, called Target_view
create view target_view as
select StudentID
      ,SubjectCode
      ,AssessID
      ,CritID
      ,CritVal
  from StuAssess
 where assessId = 11 and CritID = 42
;

Then you query the views
select StudentID
      ,SubjectCode
      ,AssessID
      ,CritID
      ,CritVal
  from result_view
union
select StudentID
      ,SubjectCode
      ,AssessID
      ,CritID
      ,CritVal
  from target_view
;
Smile | :)
Chris Meech
I am Canadian. [heard in a local bar]

In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

GeneralRe: Self-join to return either/or results? Pin
SilimSayo18-Nov-11 6:53
SilimSayo18-Nov-11 6:53 
GeneralRe: Self-join to return either/or results? Pin
Chris Meech18-Nov-11 7:46
Chris Meech18-Nov-11 7:46 
QuestionSSIS - SQL Job Pin
Sun Rays17-Nov-11 5:41
Sun Rays17-Nov-11 5:41 
Question"Lazy Spool" problem Pin
Bernhard Hiller17-Nov-11 1:00
Bernhard Hiller17-Nov-11 1:00 
AnswerRe: "Lazy Spool" problem Pin
R. Giskard Reventlov17-Nov-11 1:47
R. Giskard Reventlov17-Nov-11 1:47 
JokeRe: "Lazy Spool" problem Pin
Bernhard Hiller18-Nov-11 0:46
Bernhard Hiller18-Nov-11 0:46 
AnswerRe: "Lazy Spool" problem Pin
Jörgen Andersson17-Nov-11 3:45
professionalJörgen Andersson17-Nov-11 3:45 
GeneralRe: "Lazy Spool" problem Pin
Bernhard Hiller18-Nov-11 0:47
Bernhard Hiller18-Nov-11 0:47 
QuestionDatabase Mail 2008 problem Pin
Falconapollo16-Nov-11 22:49
Falconapollo16-Nov-11 22:49 
AnswerRe: Database Mail 2008 problem Pin
Mycroft Holmes16-Nov-11 23:15
professionalMycroft Holmes16-Nov-11 23:15 
QuestionNeed help...asp.net count sql.. Pin
mat daus16-Nov-11 21:33
mat daus16-Nov-11 21:33 
AnswerRe: Need help...asp.net count sql.. Pin
Mycroft Holmes16-Nov-11 21:43
professionalMycroft Holmes16-Nov-11 21:43 
GeneralRe: Need help...asp.net count sql.. Pin
mat daus16-Nov-11 21:51
mat daus16-Nov-11 21:51 
GeneralRe: Need help...asp.net count sql.. Pin
Mycroft Holmes16-Nov-11 23:12
professionalMycroft Holmes16-Nov-11 23:12 
GeneralRe: Need help...asp.net count sql.. Pin
mat daus16-Nov-11 21:58
mat daus16-Nov-11 21:58 
QuestionError in sql command when using ado in VC++ and unicode Pin
mazen keeikati16-Nov-11 11:06
professionalmazen keeikati16-Nov-11 11:06 
QuestionError in sql command when using ado in VC++ and unicode Pin
mazen keeikati16-Nov-11 11:05
professionalmazen keeikati16-Nov-11 11:05 

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.