Skip to main content
Answer

Non-existent in BD

  • March 19, 2023
  • 4 replies
  • 258 views

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?

4 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • Answer
  • March 19, 2023

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?


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • March 20, 2023

@Mounishg  Can you please share your GI here?


  • Author
  • Freshman I
  • March 20, 2023

@aaghaei

thank you 

your inputs helped me  now im able to fetch the data 

 


aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • March 20, 2023

Great. Glad you got what you needed