Quantcast
Viewing all articles
Browse latest Browse all 8

case inside having

NO!! CASE is an expression. Expressions return scalar values.  Columns are not fields. We do not use BIT flags in SQL. 

These are not little mistakes; these are fundamental misconceptions. Your whole mindset is wrong. Please stop trying to write SQL until you have read at least one book on RDBMS and SQL. 


--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking in Sets / Trees and Hierarchies in SQL


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>