sql >> Database >  >> Database Tools >> SSMS

Gegevens invoegen in tijdelijke tabel met query

SELECT *
INTO #Temp
FROM

  (SELECT
     Received,
     Total,
     Answer,
     (CASE WHEN application LIKE '%STUFF%' THEN 'MORESTUFF' END) AS application
   FROM
     FirstTable
   WHERE
     Recieved = 1 AND
     application = 'MORESTUFF'
   GROUP BY
     CASE WHEN application LIKE '%STUFF%' THEN 'MORESTUFF' END) data
WHERE
  application LIKE
    isNull(
      '%MORESTUFF%',
      '%')


  1. phpMyAdmin - config.inc.php configuratie?

  2. phpmyadmin-fout #1062 - Dubbele invoer '1' voor sleutel 1

  3. Bewerking niet toegestaan ​​wanneer innodb_forced_recovery> 0 [SqlYog]

  4. Parameter functioneert in SSMS maar niet in SSRS