Menu
HomeJas Moore (Page 4)
DISTINCT – CREATE DATABASE dbName; GO

DISTINCT – CREATE DATABASE dbName; GO

Using the DISTINCT command eliminates duplicate records from your SQL queries. The following query will return all rows from the SESSION table. Assume that the SCENARIO_ID of 1, which is the ClassicalMusic scenario, exists multiple times. In that case all rows are returned, in addition to all other SCENARIO_IDs. SELECT [SCENARIO_ID] FROM [dbo].[SESSION] If you […]