Where clause in Database view

BharatiK
Tera Contributor

Hi,

 

I have created a database view where I have to combine the ABC Table 'name' field (ABC@ddzwinf37) and server table 'name' field (ddzwinf37). 

 

I need some help with where clause, where we can show the details for ABC table based on server table. 

 

 

Thank you.

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@BharatiK 

how are you joining both the tables? share that screenshot

what's the common field?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

There is no exact common field, but the field contains the server's name.

I want to join Name field on ABC table with windows server name field. 

 

ABC Table: Name field

BharatiK_1-1745159292160.png

 

Server Table: Name field

BharatiK_2-1745159463386.png

 

 

Thanks.

Doesn't seem possible, as a where clause doesn't support SQL: "LIKE" or "CONTAINS".

 

AddATableToTheDatabaseView

 

@BharatiK 

you cannot search using contains operator in where clause

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader