• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

simple question in mysql query

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys I have something like this in my mysql table , I would like to get a resultset of how many spools completed( fitup joint completed and welding joint completed)
one spool considers completed if all joints under that spool completed for both fitup and welding completed

DrawingNo spoolNo jointNo fitup welding

Draw 1 Spool 1 Joint 1 completed completed
Draw 1 Spool 1 Joint 2 completed
Draw 1 Spool 2 Joint 1 completed completed
Draw 1 Spool 2 Joint 2 Completed completed

Draw 2 Spool 1 Joint 1 completed completed
Draw 2 Spool 2 Joint 1
Draw 2 Spool 3 Joint 1 completed

Draw 3 Spool 1 Joint 1 completed completed

in this case only draw3 spool1 is completed

please help me guys


 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alsoumahi -

I think you query would look something like this



- Agad
 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic