I'm relatively new to mysql. I'm trying to do a mysql query to return values where the table column value doesn't contain 'u'. I've tried several things, but it is returning 0 rows instead of 1000+, which it should. Right now, my SW_Ver_update_status column has all null initialized in it.
This is what I'm trying so far:
SELECT Distinct node_ipv4, model FROM Nokia_Network_Analyzer.NAC_DSLAMS
WHERE vendor = 'Calix' AND model in ('C7','E7') AND SW_Ver_update_status <>
'u' LIMIT 100;
This is my table structure, and yes, it is quite populated, with about 2000:
element_key int(20) YES
node_ipv4 varchar(25) YES
node_ipv6 varchar(25) YES
nodealias varchar(25) NO PRI
fqdn int(5) YES
region varchar(3) YES
class int(7) YES
service_tag int(5) YES
domain varchar(15) YES
active int(2) YES
state varchar(2) YES
LastUpdateUser varchar(15) YES
date_updated datetime YES
date_created datetime YES
vendor varchar(15) YES
model varchar(15) YES
software_version varchar(20) YES
head_node_monitor_pt varchar(15) YES
master_status varchar(15) YES
ping_reply int(2) YES
LastUpdateIP varchar(25) YES
extra int(2) YES
SW_Ver_update_status varchar(1) YES
SW_ver_update_time timestamp YES
It looks like I'm doing it ok based on what I'm searching for online: mysql <> The <> part is new, and before that it worked fine. Also, the SW_Ver_update_status, and SW_ver_update_time columns are new to the table.
Example table data:
element_key node_ipv4 node_ipv6 nodealias fqdn region class service_tag domain active state LastUpdateUser date_updated date_created vendor model software_version head_node_monitor_pt master_status ping_reply LastUpdateIP extra SW_Ver_update_status SW_ver_update_time
null 10.xx.xxx.xx null BRFRFLIR123 null FL 90712 SouthEast null FL null 2018-02-20 07:48:42 2018-02-20 07:48:42 Calix C7 1.0.320.669 empty master 1 null null null null