Forum Discussion
Markzolotoy
10 years agoImpactful Individual
Create a query to select data from a table
How do I write a query to select data from a SQL table? I mean an SQL statement to get specific data from te table.
Thanks
5 Replies
- Greg_DecklerCommunity Champion
When you connect to SQL Server, expand the "Advanced options" as show in the screen shot below and then just paste in your SQL code.
- MarkzolotoyImpactful Individual
That is when I import data. But about pulling data at real time?
- Greg_DecklerCommunity Champion
Should be essentially the same process. See the Advanced options here for DirectQuery from Azure SQL Database:
https://powerbi.microsoft.com/en-us/documentation/powerbi-azure-sql-database-with-direct-connect/
Advanced options provides a Custom filters section, and supplies an example of a SELECT statement.