question

chiang avatar image
0 Likes"
chiang asked Jason Lightfoot commented

sql problem

I want to make sure that my list has the following policies (say item1=1 and item 1=3) to do =3 first and I have labels to give them spt (say item1=n's spt is 300 item 3=m The spt is 30) In this case, 30 items will be made first1115-+柔.fsm

FlexSim 20.0.10
order byqueryitems
1115-柔.fsm (330.5 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jonah K avatar image Jonah K ♦ commented ·

Hi @chiang, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

When pulling from a list and assuming you want to do the higher Types first, use:

ORDER BY Type DESC, ProcessTime ASC

Or if you just want Type 3:

WHERE Type=3  ORDER BY ProcessTime ASC


Your model appears to have a lot of repetition - you should probably be using Object Process Flows to reduce the modelling effort and apparent complexity.

· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

chiang avatar image chiang commented ·

I've done something similar but it didn't work out as I expected1115-+柔.fsm

0 Likes 0 ·
1115-柔.fsm (334.9 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ chiang commented ·

All your values in SPT are 3. This column is just the processing time of the item (apparantly a plane? - odd choice).

Check your list entries and tell us at what time you expect something is going wrong, with the evidence to show why it's wrong. Going through this process you may uncover the answer - if not we'll be happy to investigate.

I've checked the first list I found where you were pulling by SPT, but you should be specific about which activity and list we should be checking.

0 Likes 0 ·
mark zhen avatar image mark zhen Jason Lightfoot ♦♦ commented ·

1670859917945.png

I don't understand why she has sorted but not in order

0 Likes 0 ·
1670859917945.png (38.7 KiB)
Show more comments