<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is it possible to query all tables in 1 SQL query where 2 particular columns are NULL</title><link>https://community.appian.com/discussions/f/data/17627/is-it-possible-to-query-all-tables-in-1-sql-query-where-2-particular-columns-are-null</link><description>Hello, 
 I need to create a single SQL query which returns all the tables where the columns CREATED_By and UPDATED_BY are NULL. 
 I was able to do it on individual table which returns the rows where value is NULL, but i want all Tables Names only in database</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is it possible to query all tables in 1 SQL query where 2 particular columns are NULL</title><link>https://community.appian.com/thread/69484?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2019 12:30:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:609eb0dd-5d0f-4e65-84ef-5487e4c109c0</guid><dc:creator>kunals0003</dc:creator><description>&lt;p&gt;Hi Siva,&lt;/p&gt;
&lt;p&gt;As Robert mentioned, you can do this via a stored proc call by writing dynamic SQL and taking a parameter for &amp;quot;TABLE_NAME&amp;quot;. It will replace the actual select query&amp;#39;s table name in run time by passing an input. If you want to do this for each table then a looping function can be utilized.&lt;/p&gt;
&lt;p&gt;Keep in mind the size of tables and the number of tables you&amp;#39;re looping on though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to query all tables in 1 SQL query where 2 particular columns are NULL</title><link>https://community.appian.com/thread/69443?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 21:06:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9d85d175-bccd-40ed-8e34-e520d1506f56</guid><dc:creator>Robert Shankin</dc:creator><description>&lt;p&gt;Hi Siva,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Technically, you could probably do this with a stored procedure having output parameters, or a tabular function.&amp;nbsp; This is going to be expensive to run.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s your use case?&lt;br /&gt;Are you planning something to do routinely, or are you planning cleanup?&lt;br /&gt;Do you really want every table in the db?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>