sql - Join and compare data from two tables -


I have the same schema name and project and allocation_time (integer) two columns allocation_de (integer) in two tables project and Timings are from TimesShops. I just want to join those two columns and want a small verification like this:

  SELECT Project.ID, Project.allocation_days, Timesheet.allocation_time project INNER JOIN Timesheet ON project.ID = Timesheets.Id; Surely from project (@hours / 24) and lieutenant; Allocation_dev - some ELSE BREAKENDIF  

In order to get the merger, the order of the conditions is not known, if it is & lt; Thank 24 or break

You can do this in a single query like

  * Select, case when SUM (allocation_time) / 24  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -