Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot select specific columns #3

Closed
mburahmeh opened this issue Aug 27, 2019 · 3 comments
Closed

cannot select specific columns #3

mburahmeh opened this issue Aug 27, 2019 · 3 comments

Comments

@mburahmeh
Copy link

i faced this issue

"{message: "column createdon exist in both table msdyn_workordertype & ntwapp_translation", type: "invalid_join_query"}"

the column existed on both tables so what can i do if i cannot select specific columns ?

@ujjwalguptaofficial
Copy link
Owner

ujjwalguptaofficial commented Aug 28, 2019

Hi

You can use "as" for aliasing a column name just like sql. Here is an example -

select Customers.CustomerName as name, Customers.ContactName as cName, Customers.CustomerID as cId from Orders join Customers 
on 
Orders.CustomerID=Customers.CustomerID

@mburahmeh
Copy link
Author

Hi

You can use "as" for aliasing a column name just like sql. Here is an example -

select Customers.CustomerName as name, Customers.ContactName as cName, Customers.CustomerID as cId from Orders join Customers 
on 
Orders.CustomerID=Customers.CustomerID

aliasing is working fine but the returned query still contains all columns plus the alias column , what i need is how to select aliasing columns only without other columns

@mburahmeh
Copy link
Author

mburahmeh commented Aug 31, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants