database view

nameisnani
Mega Sage

Hi Team 

 

Please help me here ,

 

I want to merge two tables 

 

1. sys_user_has_license_list

2. sys_user 

 

From the user table i have to bring Last login time - to ' (sys_user_has_license )

nameisnani_0-1713151891530.png

 

 

I have created database view , I think there was an error in ' where caluse ' can any one please help me here

 

nameisnani_1-1713151968529.png

 

what should i update in where clause

 

Thanks in advance  

 

2 REPLIES 2

Amit Verma
Kilo Patron
Kilo Patron

Hi @nameisnani 

 

Couple of observations :

 

1. User is a reserved keyword so please don't use it as variable prefix.

2. Also, in the where clause, "us" alone will not work as you need to provide the field name from the table as well to get the value (Like sys_id of the user record).

 

Please try the below configuration and see if it works :

 

AmitVerma_0-1713159916978.png

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Bhavya11
Kilo Patron

Hi @nameisnani 

 

As you mention from the user table i have to bring Last login time and need to compare with created because there is no suitable field that match last login time

Bhavya11_0-1713160190986.png

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks

BK