Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. storeprocedure

storeprocedure

Scheduled Pinned Locked Moved LINQ
3 Posts 3 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sumyuchandra
    wrote on last edited by
    #1

    select b.MotorClaimID,b.ServiceSectorRID,c.PartDesc ,d.PartSourceType,c.UnitPrice FROM Motorclaim a LEFT JOIN MotorClaimEventStatus b on a.ID =b.MotorclaimID Left JOIN Motorclaimsparts c on b.ID = c.MotorClaimEventStatusID LEFT JOIN MotorClaimSPartSourceType d on d.ID = c.MotorClaimSPartSourceTypeID where b.motorclaimid=4 and b.ServiceSectorRID=72 and b.Supplementary=0 and b.ID=486 here b.Supplementary=0 in (0) place i have to write select TotalItems from MotorClaimsGeneralSummary where motorClaimid=4 and here b.ID=486 in (486) place i have to write select ID ,ServiceSectorRID ,Supplementary from MotorClaimEventStatus where ServiceSectorRID=67 and ID in (select MAX(ID)from MotorClaimEventStatus group by ServiceSectorRID,Supplementary)order by ServiceSectorRID,Supplementary

    J N 2 Replies Last reply
    0
    • S sumyuchandra

      select b.MotorClaimID,b.ServiceSectorRID,c.PartDesc ,d.PartSourceType,c.UnitPrice FROM Motorclaim a LEFT JOIN MotorClaimEventStatus b on a.ID =b.MotorclaimID Left JOIN Motorclaimsparts c on b.ID = c.MotorClaimEventStatusID LEFT JOIN MotorClaimSPartSourceType d on d.ID = c.MotorClaimSPartSourceTypeID where b.motorclaimid=4 and b.ServiceSectorRID=72 and b.Supplementary=0 and b.ID=486 here b.Supplementary=0 in (0) place i have to write select TotalItems from MotorClaimsGeneralSummary where motorClaimid=4 and here b.ID=486 in (486) place i have to write select ID ,ServiceSectorRID ,Supplementary from MotorClaimEventStatus where ServiceSectorRID=67 and ID in (select MAX(ID)from MotorClaimEventStatus group by ServiceSectorRID,Supplementary)order by ServiceSectorRID,Supplementary

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Try asking a question. You're more likely to get an answer that way.

      1 Reply Last reply
      0
      • S sumyuchandra

        select b.MotorClaimID,b.ServiceSectorRID,c.PartDesc ,d.PartSourceType,c.UnitPrice FROM Motorclaim a LEFT JOIN MotorClaimEventStatus b on a.ID =b.MotorclaimID Left JOIN Motorclaimsparts c on b.ID = c.MotorClaimEventStatusID LEFT JOIN MotorClaimSPartSourceType d on d.ID = c.MotorClaimSPartSourceTypeID where b.motorclaimid=4 and b.ServiceSectorRID=72 and b.Supplementary=0 and b.ID=486 here b.Supplementary=0 in (0) place i have to write select TotalItems from MotorClaimsGeneralSummary where motorClaimid=4 and here b.ID=486 in (486) place i have to write select ID ,ServiceSectorRID ,Supplementary from MotorClaimEventStatus where ServiceSectorRID=67 and ID in (select MAX(ID)from MotorClaimEventStatus group by ServiceSectorRID,Supplementary)order by ServiceSectorRID,Supplementary

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        When you do have a question try asking in the correct forum. All you have here is SQL, nothing about LINQ


        I know the language. I've read a book. - _Madmatt

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups