Force Table Scan in SQL Server/Sybase

When extracting whole tables or large recordsets (say, at least 80% of the table), it is better to use Full Table Scan than use index. Full scan is more efficient in this case because it no longer need to search through the index for each record. It doesn’t need to because the whole table is going to be extracted anyways.
[Read more...]

Incoming search terms:

  • sql server force table scan
  • sql server force full table scan
  • FORCE TABLE SCAN
  • sql server table scan force
  • table scan in sql server
  • sybase forceindex
  • sql server full table scans
  • Sybase Table Scan vs Index
  • sql server select force table scan
  • sql server table scan

Oracle NVL Equivalent in MySQL

Here’s the MySQL equivalent of Oracle’s NVL and MSSQL/Sybase’s ISNULL functions.

Syntax


IFNULL(expr1,expr2)

Usage

If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2. Take note that IFNULL() returns a numeric or string value, depending on the context in which it is used. I haven’t used it for other data types yet but I reckon it would have the same results. That is to return the same data type as that of expr1. Another important thing to remember is that expr1 and expr2 should have the same data type

Incoming search terms:

  • nvl mysql
  • mysql nvl equivalent
  • nvl in mysql
  • mysql nvl
  • oracle nvl mysql
  • nvl equivalent in mysql
  • mysql nvl equivalent function
  • mysql аналог nvl
  • oracle nvl
  • NVL Oracle