![]() |
Sergey Kornilov admin 12/28/2022 |
It will not work this way. To build such a SQL query each assembly in subassembly table needs to be a separate record i.e. --------------------------------------------- |
![]() |
francesco author 12/29/2022 |
i think will use find in set function to create such a table and make sum on this table. |
W
|
wpl 12/29/2022 |
Francesco, what is the database system you are working on? |
![]() |
francesco author 12/29/2022 |
I use mysql |
![]() |
francesco author 12/29/2022 |
with this query SELECT i am able to have the exploded view as admin suggested, with a join on product_table. I only miss a inner join with timesheet to obtain time. |
![]() |
jadachDevClub member 12/29/2022 |
This may be a hack. if there are only 8 part numbers, this may work. Otherwise it would not. Also, this is SQL Server --Create a View --Calculate the view |
![]() |
francesco author 12/29/2022 |
thanks for reply, partnumbers can be a lot more.... I only want to inner join time data from timesheet, but I have difficult with my poor sql capacity. Any advice is appreciated |
![]() |
fhumanes 12/29/2022 |
Hello, I have explained this situation several times, because we use the multi-value solution, this situation occurs. In this article I explain this situation in the film relationship and interpreters. https://fhumanes.com/blog/otros-ejemplos/tutorial-curso-basico-de-phprunner/ The solution is to decline a database view in this way: CREATE VIEW `v_vide_peli_interprete` AS
Regards, P.S. I do not do the Query with the Francesco tables in order to "force" that the solution is perfectly understood. |
G
|
Grdimitris 12/30/2022 |
try this |
![]() |
francesco author 12/30/2022 |
thanks for the try I solved with Fernando solution: SELECT I had to put another field workorder to use as filter. |