Skip to main content
Solved

Non-existent in BD

  • Mar 19, 2023 6:31 PM UTC
  • 4 replies
  • 303 views
  • Translate All

Hi

I Need Help in this Non-existent column the data is not fetching  in the GI 

 

 

In the Sql query i need to marge the those two columns in single column how to use in the GI 

Best answer by aaghaei

1) As for SQL query, you can use either one of the below based on your needs. You can add more fields to the second one separated by “,”

SELECT ISNULL(FSARTran.ServiceOrderRefNbr, FSARTran.ServiceContractRefNbr) AS 'MyRefNbr', * FROM FSARTran
SELECT COALESCE(FSARTran.ServiceOrderRefNbr, FSARTran.ServiceContractRefNbr) AS 'MyRefNbr', * FROM FSARTran
SELECT ISNULL(FSARTran.ServiceOrderRefNbr, '') + ' - ' + ISNULL(FSARTran.ServiceContractRefNbr, '') AS 'MyRefNbr', * FROM FSARTran

 

2) As for the Unbound field, if it is supposed to return value based on the associated DAC properties it will. If it is not, then no matching value is found for that record. What Screen is this?

View original

4 replies

aaghaei
Captain II
Forum|alt.badge.img+11
  • Captain II
  • Answer
  • Mar 19, 2023 9:21 PM UTC

1) As for SQL query, you can use either one of the below based on your needs. You can add more fields to the second one separated by “,”

SELECT ISNULL(FSARTran.ServiceOrderRefNbr, FSARTran.ServiceContractRefNbr) AS 'MyRefNbr', * FROM FSARTran
SELECT COALESCE(FSARTran.ServiceOrderRefNbr, FSARTran.ServiceContractRefNbr) AS 'MyRefNbr', * FROM FSARTran
SELECT ISNULL(FSARTran.ServiceOrderRefNbr, '') + ' - ' + ISNULL(FSARTran.ServiceContractRefNbr, '') AS 'MyRefNbr', * FROM FSARTran

 

2) As for the Unbound field, if it is supposed to return value based on the associated DAC properties it will. If it is not, then no matching value is found for that record. What Screen is this?

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Mar 20, 2023 5:18 AM UTC

@Mounishg  Can you please share your GI here?

Translate

  • Author
  • Freshman I
  • Mar 20, 2023 6:48 AM UTC

@aaghaei

thank you 

your inputs helped me  now im able to fetch the data 

 

Translate

aaghaei
Captain II
Forum|alt.badge.img+11
  • Captain II
  • Mar 20, 2023 6:53 AM UTC

Great. Glad you got what you needed 

Translate