Home Forums SQL Server 2005 T-SQL (SS2K5) Sql Select query is not working on one table but the same is working on copy of the table RE: Sql Select query is not working on one table but the same is working on copy of the table

  • praveenkumarpalla (2/2/2015)


    Thank you for the reply, Yes I agree with you...

    My requirement is like user will upload the excel in which there will be a lab id, block id, mutation1, value1,mutation2, value2..... mutation count will be dynamic. So in database only have one table and how many mutatiions are there for lab block combination that many rows will be for the combination. In search screen, user will select mutation and its value... foreach condition user selected have to join the table with mutation and value condition.

    help me on this....

    Thanks,

    Praveen.

    I can help you with the query. You will have to provide CREATE TABLE scripts and also scripts to populate the tables with sample data.

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden