Skip to content

Tag: sql

SQL Server: NULL or empty string?

I have a a database column whose value is determined programmatically and is not affected by user input. The value is never an empty string; it’s either NULL or a non-0 length string. The column is …

MySQL result select SUM from the database

I’ve the following tables and I try to select from table1, table2 and table3 and sum them in total: CREATE TABLE `tbl_cars` ( `carID` int(11) NOT NULL, `car` varchar(255) NOT NULL, `product1` …