Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
When using get_login_by_id, where is the most recent login located?

As I understand it, Users have a one-to-many relationship with logins. Each individual user can have multiple logins that point back to themselves. My question is when access a login by using get_login_by_id, where is the most recent login stored in the resulting array of data? Does the data act as a queue so the most recent item is at the last index in the array (the higher number), or does it act as a stack so the most recent login will always be the first element (index 0)?

Posted 3 years ago
Votes Newest

Answers


Hello, I will go over this one step at a time, looking at the documentation for get_login_by_id I can see the documentation here : https://docs.q2developer.com/

Inside this docs it is calling stored procedure sdk_GetLoginByUserID Which looking at the sdk code is the file: code.q2developer.com. Which we can see doesn't apply any sorts so it will be defaulted to by the primary key. This is looking at the table dbo.Q2_UserLogon. Which inside this table is a column called LastLogon which is probably the piece of data you are looking for.

You could also just call the function with the appropriate data and see what you get back.

Posted 3 years ago
Trey Teter
124 × 2 Administrator
95 Views
1 Answer
3 years ago
3 years ago
Tags