Click here to Skip to main content
15,900,110 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: My most advanced SQL so far! Pin
Super Lloyd26-Feb-14 23:06
Super Lloyd26-Feb-14 23:06 
GeneralRe: My most advanced SQL so far! Pin
Mohamad M. Mohamad26-Feb-14 23:30
Mohamad M. Mohamad26-Feb-14 23:30 
GeneralRe: My most advanced SQL so far! Pin
Rage26-Feb-14 21:44
professionalRage26-Feb-14 21:44 
GeneralRe: My most advanced SQL so far! Pin
Super Lloyd27-Feb-14 12:46
Super Lloyd27-Feb-14 12:46 
GeneralRe: My most advanced SQL so far! Pin
V.26-Feb-14 20:47
professionalV.26-Feb-14 20:47 
GeneralRe: My most advanced SQL so far! Pin
Super Lloyd26-Feb-14 21:30
Super Lloyd26-Feb-14 21:30 
GeneralRe: My most advanced SQL so far! Pin
Rage26-Feb-14 21:46
professionalRage26-Feb-14 21:46 
GeneralRe: My most advanced SQL so far! Pin
Super Lloyd26-Feb-14 23:04
Super Lloyd26-Feb-14 23:04 
Your faulty logic lies in over simplification....

I assure you the C# linq friendly version would suffer from tremendous performance issue....

To give you an idea in pseudo C# I search for RTF by looking at all the below fields
RTF
    int ID
    string Name
    AnswerSet Answer

AnswerSet
    DateTime LastModified
    string ModifiedBy
    List<Answer>

Answer
    int questionID
    AnswerType type // string / num / bool / date / List
    string vString
    decimal vNum
    Date vDate
    bool vBool
    List<Option> vOptions

Option
    int ID
    string Name


now the user can build with a simple UI a list of criteria which looks like that
Criteria
    int groupID
    bool isGroupAndOrOr
    CriteriaType cType // LIKE / UNLIKE / MISSING / = != < >
    int? questionID // match questionID in Answer
    int? wellKnowID // or match RTF.Name, RTF.Answer.LastModified,, RTF.Answer.ModifiedBy
    object value


Now tell me how you can do this search in just 1 SIMPLE DB CONNECTION AND CALL
My programming get away... The Blog...
DirectX for WinRT/C# since 2013!
Taking over the world since 1371!

GeneralRe: My most advanced SQL so far! Pin
Bassam Abdul-Baki27-Feb-14 0:35
professionalBassam Abdul-Baki27-Feb-14 0:35 
GeneralRe: My most advanced SQL so far! Pin
Corporal Agarn27-Feb-14 0:46
professionalCorporal Agarn27-Feb-14 0:46 
GeneralA life lesson Pin
Ennis Ray Lynch, Jr.27-Feb-14 3:17
Ennis Ray Lynch, Jr.27-Feb-14 3:17 
GeneralRe: A life lesson Pin
Super Lloyd27-Feb-14 4:21
Super Lloyd27-Feb-14 4:21 
QuestionFree private repositories Pin
Oshtri Deka26-Feb-14 17:41
professionalOshtri Deka26-Feb-14 17:41 
AnswerRe: Free private repositories Pin
Paul Conrad26-Feb-14 18:42
professionalPaul Conrad26-Feb-14 18:42 
AnswerRe: Free private repositories Pin
JimmyRopes26-Feb-14 19:50
professionalJimmyRopes26-Feb-14 19:50 
AnswerRe: Free private repositories Pin
_Maxxx_26-Feb-14 23:58
professional_Maxxx_26-Feb-14 23:58 
GeneralRe: Free private repositories Pin
Oshtri Deka27-Feb-14 2:18
professionalOshtri Deka27-Feb-14 2:18 
GeneralFor the enjoyment of the VMS fans PinPopular
PIEBALDconsult26-Feb-14 17:06
mvePIEBALDconsult26-Feb-14 17:06 
GeneralRe: For the enjoyment of the VMS fans Pin
Mike Hankey26-Feb-14 17:40
mveMike Hankey26-Feb-14 17:40 
GeneralRe: For the enjoyment of the VMS fans Pin
JimmyRopes26-Feb-14 19:16
professionalJimmyRopes26-Feb-14 19:16 
GeneralRe: For the enjoyment of the VMS fans Pin
Ger Hayden2-Mar-14 0:52
Ger Hayden2-Mar-14 0:52 
GeneralRe: For the enjoyment of the VMS fans Pin
JimmyRopes2-Mar-14 0:56
professionalJimmyRopes2-Mar-14 0:56 
GeneralRe: For the enjoyment of the VMS fans Pin
Ger Hayden4-Mar-14 18:29
Ger Hayden4-Mar-14 18:29 
GeneralRe: For the enjoyment of the VMS fans Pin
Jörgen Andersson26-Feb-14 19:59
professionalJörgen Andersson26-Feb-14 19:59 
GeneralDarwin Adward Pin
JimmyRopes26-Feb-14 16:06
professionalJimmyRopes26-Feb-14 16:06 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   481 votes