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

Adding new Query #4269

Closed
olokedeomotayo opened this issue Jan 23, 2018 · 9 comments
Closed

Adding new Query #4269

olokedeomotayo opened this issue Jan 23, 2018 · 9 comments
Labels
inactive Inactive for >= 30 days

Comments

@olokedeomotayo
Copy link

olokedeomotayo commented Jan 23, 2018

Good Morning,

I am new to Apache Superset and i have successfully connected MYSQL Db to Superset and the following was my set back;

  1. Unable to Join to table together due to the fact that i can not locate where to add my query.
  2. I tried using SQL LAB but my database is not LISTED.

Please any help on these.

Thank you.

@olokedeomotayo
Copy link
Author

Good Morning,

I am new to Apache Superset and i have successfully connected MYSQL Db to Superset and the following was my set back;

Unable to Join to table together due to the fact that i can not locate where to add my query.
I tried using SQL LAB but my database is not LISTED.

Please any help on these.

Thank you.

@shyam2794
Copy link

@olokedeomotayo In the sources -> databases -> click on edit record -> check the expose in sql lab . You will be able to see your database in the SQL Lab .

@olokedeomotayo
Copy link
Author

Thank You @shyam2794 this makes me view and work with my Database....

How do i now convert the SQL Script there to Dashboard?

Any Help Please

@shyam2794
Copy link

@olokedeomotayo In the Sql lab after writing your query -> click run query -> click visualise .

@olokedeomotayo
Copy link
Author

Thank You once again. i would like you to take a look at the SQL Script below;
SELECT name AS name,
(tabSales Invoice Item.item_group) AS item_group,
(tabSales Invoice Item.item_name) AS item_name,
SUM(tabSales Invoice Item.amount) AS sum__amount
(tabSales Invoice Item'.customer_name) AS customer_name, SUM(tabSales Invoice.total) AS sum__total FROM (tabSales Invoice Item) LEFT JOIN tabSales InvoiceONtabSales Invoice.name = tabSales Invoice Item`.name
WHERE creation >= '2016-09-10 00:00:00'
AND creation <= '2018-01-23 11:41:34'
GROUP BY name,
item_group,
item_name,
customer_name
ORDER BY sum__amount DESC
LIMIT 50000

the table is returning only for the first table ignoring the other table.

Any Help Also

@shyam2794
Copy link

You can have a look at this thread
#875

@olokedeomotayo
Copy link
Author

Dear @alanmcruickshank i tried Inserting the Row just like you explained in Isues #875 but i seems not to be getting the correct results.
I have a two tables i want to join like that, i have a Column in one but not in the other table which i want to Insert into the Other table, how do i go about this any help Please.

@stale
Copy link

stale bot commented Apr 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 11, 2019
@stale stale bot closed this as completed Apr 18, 2019
@Saranya411
Copy link

Hi All,

Can someone help me to connect Netezza from Superset. I'm new to superset and not sure how to connect Netezza from Superset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

3 participants