sql server - SQL Query Remove Part of Path/Null -


so new whole sql query business need 2 issues. goal have in column "environmentname" has word "database" in column "nodename" displayed in query results. did

  [backbone_aspider].[dbo].[vw_cfgsvr_con]   nodename = 'database'    order environmentname asc   nodepath   

results of query:

i able query results remove rows null. have tried use "is not null" sql server management studio labeles "incorrect syntax."

what have tried:

from [backbone_aspider].[dbo].[vw_cfgsvr_con] nodename = 'database'  order environmentname asc not null nodepath   

thank in advance!

your query pretty close.. 1: have specify specific column not null while using not null. modify query to:

from [backbone_aspider].[dbo].[vw_cfgsvr_con] nodename = 'database' , environmentname not null  order environmentname asc nodepath 

2: check out article trimming parts of strings query results http://basitaalishan.com/2014/02/23/removing-part-of-string-before-and-after-specific-character-using-transact-sql-string-functions/


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -